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

Detailed Error Messages when uploading (client-side) #185

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

Conversation

nathanielCherian
Copy link

Previously, when uploading an erroneous file, the user would be prompted with the generic message "Invalid response" wether the file was too large, of the incorrect type, or just not allowed. By alerting the user to what is preventing the image from being sent. PR is a one line addition that replaces changes XHR_RESPONSE_ERROR to whatever the error message is that is passed in. For example, uploading an improper file type would tell the user 'File type is not supported.' as opposed to "Invalid response"

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