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

Support .mov for video upload #384

Open
mayinrain opened this issue Aug 6, 2024 · 1 comment
Open

Support .mov for video upload #384

mayinrain opened this issue Aug 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mayinrain
Copy link

mayinrain commented Aug 6, 2024

Describe the bug
When I upload a video with a .mov extension, the file is recognized as an image format.
To Reproduce
Steps to reproduce the behavior:

  1. Go to http://localhost:5173/
  2. Click on file uploader
  3. Select a file with a .mov extension
  4. The file is recognized as an img.

Screenshots of backend AND frontend terminal logs
I printed the Base64 of the file and found that the prefix is data:application/octet-stream, so it is recognized as an img.

image

Here is the corresponding code

@abi
Copy link
Owner

abi commented Aug 6, 2024

Yeah, I would recommend converting .mov to .mp4 before uploading it.

We probably will support more video formats, but there's lots of different ones so that isn't the biggest focus at the moment.

@abi abi added the bug Something isn't working label Aug 6, 2024
@abi abi changed the title Type mismatch error Support .mov for video upload Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants