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

Design reusable component for uploading and previewing files #36

Closed
L-Mario564 opened this issue Mar 24, 2024 · 0 comments
Closed

Design reusable component for uploading and previewing files #36

L-Mario564 opened this issue Mar 24, 2024 · 0 comments
Assignees
Labels
ui UI & design (frontend) related issues

Comments

@L-Mario564
Copy link
Contributor

Why?

A single component that handles any file upload would be very convenient to have instead of re-implementing a similar UI with small differences for handling different assets.

How?

When the user desires to upload a file, a modal should appear and must have an upload button. Once the file is uploaded (locally), or if a file is already in place: if it's an image or GIF, preview the image/GIF; if it's any other file, show a file icon that just lets the user know that a file has been uploaded; in both cases, display the original file name below.

If the user has uploaded a file, they must be able to upload that file to the Bunny storage zone and update the metadata in the DB making a request to the respective API route for that asset.

@L-Mario564 L-Mario564 added the ui UI & design (frontend) related issues label Mar 24, 2024
@L-Mario564 L-Mario564 self-assigned this Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui UI & design (frontend) related issues
Projects
Development

No branches or pull requests

1 participant