Last active
September 20, 2016 20:33
-
-
Save halgatewood/f5cb361acf891c33f9d33ea3b2570424 to your computer and use it in GitHub Desktop.
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 uploadRequest = AWSS3TransferManagerUploadRequest() | |
| uploadRequest?.body = videoURL | |
| uploadRequest?.key = fileName | |
| uploadRequest?.bucket = S3BucketName | |
| AWSS3TransferManager.default().upload(uploadRequest).continue( | |
| { | |
| (task) -> AnyObject! in | |
| // ERROR | |
| if task.error != nil | |
| { | |
| } | |
| // SUCCESS | |
| if task.result != nil | |
| { | |
| } | |
| return nil | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment