Mime type validation - Client side #13

Merged
niat8586 merged 7 commits from develop into main 2025-02-04 11:36:52 +01:00
Owner

Added a simple validation so if the user tries to upload a file that is not an audio file or video file they will get an alert that explains that they
need to choose an audio or video file to upload.

Added a simple validation so if the user tries to upload a file that is not an audio file or video file they will get an alert that explains that they need to choose an audio or video file to upload.
niat8586 added 7 commits 2025-02-04 11:36:15 +01:00
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.
Instead of enforcing we are "warning" that the outcome for the selected file may not work as expected
It now only accepts audio/* and video/* mime types.
Changed the alert text a bit to make it more clear that they need to select an
audio or video file to upload.
Reviewed-on: #12
Reviewed-by: Andreas Svanberg <andreass@dsv.su.se>
niat8586 merged commit f5fed6d30c into main 2025-02-04 11:36:52 +01:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/seshat#13
No description provided.