Simple file content validation #12

Merged
niat8586 merged 6 commits from simple-client-validation into develop 2025-02-04 11:32:33 +01:00

6 Commits

Author SHA1 Message Date
1d38c59643 Changed arrow function so that the parameter is clearly shown inside a parentheses.
Changed the alert text a bit to make it more clear that they need to select an
audio or video file to upload.
2025-02-04 11:28:19 +01:00
efb0f72a88 Changed validation to work on mime type instead.
It now only accepts audio/* and video/* mime types.
2025-02-04 11:10:51 +01:00
a37f4bb60b Added .mkv to accepted and allowedExtensions 2025-02-04 10:22:53 +01:00
652f6ec22a Removed unused const in validateFile function 2025-02-04 10:04:15 +01:00
448c1e9d6b Simple file content validation
Instead of enforcing we are "warning" that the outcome for the selected file may not work as expected
2025-02-04 10:03:09 +01:00
b948beaa2b Simple file content validation
Added a simple file content validation to what files can be uploaded.
This should at least help users select the correct file type.

There is no server side validation and that is something we actually will need to implement
at some point.
2025-02-04 09:44:48 +01:00