prachiFam / amazon_s3_cognito

this is a Flutter plugin allows users to upload and delete image for amazon s3 cognito
Other
16 stars 24 forks source link

Malformed URL after upload. (no extension) #8

Open prashantspandey opened 4 years ago

prashantspandey commented 4 years ago

Hi I am uploading a video to my bucket with : String uploadedImageUrl = await AmazonS3Cognito.uploadImage( imagePath.path, 'bucketname', 'us-east-1:xyz', );

This works perfectly fine. But the problem is when I get uploadedImageUrl , it doesn't have a extension. ie. if the video was .mp4 file then this would be the url

https://instituteimages34.s3.amazonaws.com/IMG20200210174813mp4

As you can see there is no '.' before mp4. This is the problem when I try to play to video in flutter video player or chewie. How can it be solved?

thanhnhan111093 commented 3 years ago

I got the same error when I select the file without the extension and reuse the filename. the app will be crashed