Created
October 18, 2017 09:47
-
-
Save anish2690/de07c499e7bdccff9ab7151616c0e9a6 to your computer and use it in GitHub Desktop.
Cloudinary Code to Upload PDF,DOC,DOCX,XLS etc Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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