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

Discrepancy between allowed upload file types and usable types #501

Open
mzur opened this issue Nov 7, 2022 · 0 comments
Open

Discrepancy between allowed upload file types and usable types #501

mzur opened this issue Nov 7, 2022 · 0 comments
Labels

Comments

@mzur
Copy link
Member

mzur commented Nov 7, 2022

The user storage module allows file uploads based on the file MIME types. The volume file browser, however, uses the file endings to filter the displayed files. Also, sometimes the file MIME type changes in unexpected ways. Concrete example:

A user uploaded a file with the .m4v ending but which had MIME type video/mp4. This file can be played in the browser and the file upload allowed the file based on the MIME type. When the file was transferred to the object storage, the MIME type was automatically changed to video/x-m4v however. So now the file will no longer be displayed in the volume file browser because the .m4v file ending is not supported and also the video would not be processed any more because it now has the unsupported video/x-m4v MIME type. But the user did nothing wrong, as the original video file is web-compatible.

What to do here? Allow .m4v as well as video/x-m4v? But there can be videos with video/x-m4v with proprietary audio codecs as far as I have read. These are irrelevant for BIIGLE, though. Or should we better synchronize the allowed files in the upload and volume file browser? Maybe we should check the MIME type and the file ending in the upload?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Medium Priority
Development

No branches or pull requests

1 participant