Skip to content

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