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

submission: allow for inaccurate archive file extensions #123

Closed
GraemeWatt opened this issue Sep 26, 2017 · 0 comments
Closed

submission: allow for inaccurate archive file extensions #123

GraemeWatt opened this issue Sep 26, 2017 · 0 comments

Comments

@GraemeWatt
Copy link
Member

The upload code relies on the file extension of an archive file (.zip, .tar, .tar.gz) to decide how to unpack it. But sometimes users try to upload files with the wrong extension, e.g. a .tar file that is gzipped or a .tar.gz file that is not gzipped. Currently a generic 500 error message is returned and the user often does not understand what went wrong. A more useful error message should be returned, or the code should accommodate possible mismatches between the file type and file extension.

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

No branches or pull requests

1 participant