How can we restrict file upload to certain file types? #7835
Answered
by
NiklasBr
hellosmriti
asked this question in
Q&A / Support
-
How can we restrict file upload to certain file types only like for asset we wish to restrict upload extension to .jpg/.jpeg only or upload MIME type to image/jpeg? |
Beta Was this translation helpful? Give feedback.
Answered by
NiklasBr
Jan 4, 2021
Replies: 1 comment
-
I suppose you might be able to use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hellosmriti
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suppose you might be able to use the
AssetEvents::PRE_ADD
event and inspect the file type then and there.