Support .mov for video upload
Author: mayinrainCreated Aug 6, 2024Updated May 30, 2026
Labelsbug
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:
- Go to http://localhost:5173/
- Click on file uploader
- Select a file with a .mov extension
- 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.
Here is the corresponding code
Source: abi/screenshot-to-code