Simple file content validation #12
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "simple-client-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
A fine enough solution that should catch some user errors.
alert
is not the best UX and showing some warning text under is maybe better, especially since there could be valid files with other extensions. Less intrusive/annoying for the user.The
accept
attribute can maybe be better served asaudio/*, video/*
with the validation logic having the more strict interpretation. Removes some duplication as well.Simple file content validationto WIP: Simple file content validationWill make changes to check that the mime type is audio or video instead
WIP: Simple file content validationto Simple file content validation