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

Confusing error when using video/mov mimetype for uploading .mov files #6669

Open
karcsesz opened this issue Oct 11, 2024 · 1 comment
Open
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor

Comments

@karcsesz
Copy link

Describe the current behavior

Apparently on some Windows installs (like my friend's live media production machine) the system-wide mimetype registry has a nonstandard record for .mov files under HKEY_CLASSES_ROOT.

image

As web browsers defer to this registry to figure out the uploaded video's mimetype, the upload request sends video/mov instead of the standard video/quicktime that PeerTube is currently set up to accept, therefore the user is faced with an error telling them their format isn't supported even though .mov will be listed as a supported extension.

Steps to reproduce

  1. Install an application that changes the .mov mimetype to video/mov (not sure which one it is yet, but my hunch is Premiere)
  2. Try to upload a file with .mov extension to PeerTube
  3. Get rejected for invalid file type even though the error clearly lists .mov as a valid format

Describe the expected behavior

PeerTube either returns a different, more descriptive error, or caves and accepts video/mov mimetype for .mov files as well as video/quicktime even though it isn't standard, as this seems to be a somewhat common issue.
Another project that ran into this: immich-app/immich#1913

It might also be nice to log the rejected mimetype with the returned error to simplify troubleshooting similar issues.

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug: Windows 10, both Chrome 129.0.6668.90 and Firefox 131.0.2, probably every browser that relies on OS mimetypes

@stevespaw
Copy link

I am on windows also and have had the same issue with .mov's . I have forgotten to report this issue.

@Chocobozzz Chocobozzz added the Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor
Projects
None yet
Development

No branches or pull requests

3 participants