Skip to content

Instantly share code, notes, and snippets.

@halgatewood
Last active September 20, 2016 20:33
Show Gist options
  • Select an option

  • Save halgatewood/f5cb361acf891c33f9d33ea3b2570424 to your computer and use it in GitHub Desktop.

Select an option

Save halgatewood/f5cb361acf891c33f9d33ea3b2570424 to your computer and use it in GitHub Desktop.
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