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

Uploading is not working #6

Open akshay512 opened 4 years ago

akshay512 commented 4 years ago

After building apk image upload does not work!!

ni3galave commented 4 years ago

@prachiFam any update on this? I tried with uploadImage method as follow: String uploadedImageUrl = await AmazonS3Cognito.uploadImage( "/storage/..../files/Pictures/819972955.jpg, //full path 'flutter-test', 'xxxxx' // identity pool id ); and this method always return "Failed" message.

prachiFam commented 4 years ago

Could you let me know what is the error message? Also please ensure that your bucket has proper permissions and that it's a public bucket as the IOS image does not work on non-public buckets. We are using this plugin in 2 of our apps and it's working as expected till date.

ni3galave commented 4 years ago

I am trying this feature for android uploadImage method not returning proper error message it just returning "Failed" string. So, I slightly debugged into upload image code then I found that we are not returning any error message whenever any upload image failed. Just returning "Failed" string

https://github.com/prachiFam/amazon_s3_cognito/blob/98b04117accb8c5be3b2ee6c4e3a9e0ad055974f/android/src/main/kotlin/com/famproperties/amazon_s3_cognito/AmazonS3CognitoPlugin.kt#L44

And also already given public access to flutter-test bucket in order to test this feature.