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

Make uploader show error when selecting non-video or -audio files #717

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

LukasKalbertodt
Copy link
Member

Fixes #682

This could technically make some things that worked before fail now. Either because Opencast can deal with some files that have a non video/ or audio/ mime type. Or because the browser doesn't correctly infer the MIME type. MDN says that browser don't read the file but judge purely from the file name extension. And that for rare or ambiguous extensions, it might return an empty MIME type. I think this should be fine, but I'm not entirely sure and have no idea. How I would find out more :/

@LukasKalbertodt LukasKalbertodt added the changelog:user User facing changes label Feb 20, 2023
@github-actions github-actions bot temporarily deployed to test-deployment-pr717 February 20, 2023 15:00 Destroyed
Copy link
Member

@owi92 owi92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this with various file extension types and it appears to be doing what it should. Apart from the missing translations, everything looks good to me.

@github-actions github-actions bot temporarily deployed to test-deployment-pr717 February 21, 2023 09:38 Destroyed
@owi92 owi92 merged commit 4f4a1a3 into elan-ev:master Feb 21, 2023
@LukasKalbertodt LukasKalbertodt deleted the check-mime-type-uploader branch February 21, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check whether the files are video files before starting to upload
2 participants