Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload image from react native succeed, but the uploaded image is bad #2211

Closed
YikSanChan opened this issue Nov 29, 2018 · 2 comments
Closed
Labels
React Native React Native related issue Storage Related to Storage components/category

Comments

@YikSanChan
Copy link

YikSanChan commented Nov 29, 2018

Describe the bug
From my expo app, I follow @dabit3's instruction in which a section teaches how to pick an image with expo ImagePicker and upload the image blob to AWS Amplify Storage. Even though I am able to upload the image blob (I can tell from the image's timestamp), the image on S3 is not the one I uploaded.

To Reproduce
Steps to reproduce the behavior:

  1. Create an expo+awsamplify app following the instruction.
  2. Run on IOS simulator (expo start --ios)
  3. Pick an image and upload.
  4. Go to S3 storage of the app and view the image
  5. See such an image. (I intentionally make the image public)

Expected behavior
The image on S3 should be the image I upload from my IOS simulator / my IOS phone.

Smartphone (please complete the following information):

  • Device: Expo IOS Simulator
  • Version: expo 2.5.0
@manueliglesias manueliglesias added Storage Related to Storage components/category React Native React Native related issue labels Nov 29, 2018
@YikSanChan
Copy link
Author

This is not an amplify-js issue actually. It turns out that react-native fetch doesn't assign "blob" mime-type to the xhr properly. Please find details at expo/firebase-storage-upload-example#13.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
React Native React Native related issue Storage Related to Storage components/category
Projects
None yet
Development

No branches or pull requests

2 participants