Skip to content

Form Data File Container

Latest
Compare
Choose a tag to compare
@rogermolas rogermolas released this 10 Feb 11:59
· 38 commits to master since this release
var files = [RMFormDataFile]()
let file = RMFormDataFile("picture", image.jpegData(compressionQuality: 1.0), "avatar.jpeg", "image/jpeg")
files.append(file)

let params = [
   "field1":  arbitration.auction.id!,
   "description":  "sample test"
]

let request = APIRequestBuilder().buildFormRequest(api: urlString, params: param, files: files)