Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The accept attribute on an <input type="file"> element is used to limit the types of files that users can select when uploading. For example, if you set accept="image/*", it will prompt users to choose only image files. However, it’s important to note that this attribute only provides guidance on the types of files users should select and isn’t a foolproof security measure. Users can still bypass this restriction by manipulating their browser or the file input directly, so you should always perform server-side validation to ensure that only allowed file types are processed.
- Loading branch information