Video Upload to Amazon S3 in Swift

Video, uploaded on S3 bucket, not playing through url in iOS app

The reason for this was that while uploading the video, the Content-Type for video was not setting due to which the video was not playing. Setting the Content-Type in form-data as well as in Policy, the video uploaded and played successfully.

Problems uploading video files to a existing bucket with AWS on iOS

try setting content type to video/mp4 just to mitigate possible unforeseen issues with MIME types.

I would also advise reading this, it contains some different methods for uploading, and dealing with threads as you do.



Related Topics



Leave a reply



Submit