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

Update the Toast error message title in /upload/page.tsx #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

8xMohab
Copy link

@8xMohab 8xMohab commented Jul 28, 2024

Problem:
When the user uploads a file with a type other than PNG, JPG, or JPEG, we give the user an error message with the wrong file type. This works for known file types like JSON, for example, but for the "not so common" ones like.deb, for example, dropzone returns an empty string, so the error message will be "type is not supported."

Solution:
Change the title error message of the toast to include a generic error message for file types that's not detected by dropzone.

generic error message: "Your file type is not supported."

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

Successfully merging this pull request may close these issues.

1 participant