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

The uploaded file is not being displayed in the _Product class. #2418

Closed
4 tasks done
AshishBarvaliya opened this issue Apr 14, 2023 · 8 comments · Fixed by #2471
Closed
4 tasks done

The uploaded file is not being displayed in the _Product class. #2418

AshishBarvaliya opened this issue Apr 14, 2023 · 8 comments · Fixed by #2471
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@AshishBarvaliya
Copy link
Member

New Issue Checklist

Issue Description

The uploaded file is not being displayed in the default _Product class.

Steps to reproduce

CPT2304132340-1068x670

Actual Outcome

hidden file name

Expected Outcome

It should show the file name just like for other classes.
Screenshot 2023-04-13 at 11 36 19 PM

Environment

Dashboard

  • Parse Dashboard version: 5.0.0
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Chrome
  • Browser version: Version 111.0.5563.146 (Official Build) (arm64

Server

  • Parse Server version: 5.4.3
  • Operating system: MacOS
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: MongoDB 5.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Remote

Logs

n/a

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.

@mtrezza mtrezza added type:bug Impaired feature or lacking behavior that is likely assumed bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) labels Apr 14, 2023
@alceil
Copy link

alceil commented May 18, 2023

Can i work on this @mtrezza ?

@mtrezza
Copy link
Member

mtrezza commented May 18, 2023

Sure, please go ahead, it doesn't seem that anyone else has opened a PR so far.

@AshishBarvaliya
Copy link
Member Author

This issue is not confined to a specific class(_Product); The problem arises when an object is not saved, preventing the image from being uploaded to the database. As a result, the status remains as 'Uploading...' until the object is saved or added, at which point the filename (along with the uploaded URL) becomes visible. Once the object is successfully saved, everything functions perfectly. We are effectively handling the rest of the data types, saving them to the state and displaying them in the UI. However, we need to address the file handling aspect, such as displaying the file name only without allowing direct access to the URL.
ex.
Uploading after save(No updates required here):
Screenshot 2023-06-20 at 6 47 24 PM

Uploading before save(proposed solution):
Screenshot 2023-06-20 at 6 51 54 PM

@mtrezza

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.2.0-alpha.27

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Jun 30, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.3.0-beta.1

@parseplatformorg parseplatformorg added the state:released-beta Released as beta version label Sep 15, 2023
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.3.0-alpha.1

@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.3.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bounty:$10 Bounty applies for fixing this issue (Parse Bounty Program) state:released Released as stable version state:released-alpha Released as alpha version state:released-beta Released as beta version type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
4 participants