Skip to content

Instantly share code, notes, and snippets.

@anish2690
Created October 18, 2017 09:47
Show Gist options
  • Save anish2690/de07c499e7bdccff9ab7151616c0e9a6 to your computer and use it in GitHub Desktop.
Save anish2690/de07c499e7bdccff9ab7151616c0e9a6 to your computer and use it in GitHub Desktop.
Cloudinary Code to Upload PDF,DOC,DOCX,XLS etc Swift
let params = CLDUploadRequestParams()
//params.setRawConvert("illegal") // this is producing some error as illegal is not a valid argument
params.setResourceType(.auto)
cloudinary.createUploader().upload(url: documentUrl, uploadPreset: "wyfi3884", params: params,completionHandler: { (response, error) in
urlCloudinary = response?.url
resp = response
error = error
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment