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

Images interoperability issue between hosted parse and S3 hosting #1400

Closed
3 tasks done
vickyteke opened this issue Apr 6, 2016 · 1 comment
Closed
3 tasks done

Comments

@vickyteke
Copy link

Check out this issue for an ideal bug report. The closer your issue report is to that one, the more likely we are to be able to help, and the more likely we will be to fix the issue quickly!

For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

  1. Set up S3 to host your app's image.
  2. Run the latest parse-server.
  3. Create a web app pointing to the parse-server.
  4. Store images using PFFile and parse-server.

The images could be stored in a class in two ways
A. as a field in the class
B. in an array field in the class.

If PFFile is stored in a field in a class, it only contains the image name, but if it is stored as an array in a field, then it contains the url also.

Interop Problem 1.
The users who are using an app that is still pointing to hosted parse api server, are not able to see the S3 image for option A above. This is because hosted parse returns the url prefixed with files.parsetfss.com + <name_of_the_image.jpeg>. However, they are able to see the images which are stored in an array field as it contains the full url of the images (option B above).

Interop Problem 2.
The users who are on the app pointing to parse-server are not able to see the images stored as option A by hosted parse because not all the images start with the name "tfss-". Parse-server returns the constructed url as if it was stored in S3. Users are able to see the images stored as in option B.

@flovilmart
Copy link
Contributor

Closing as duplicate of #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants