abi / abi/screenshot-to-code

Support .mov for video upload

Offen
#384 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
78.7k
Forks
9.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.