How to restrict file uploads by extension?

Posted by Prem Tiwari | Updated on

I believe you can add a filter to upload_mimes to restrict to certain types. The upload_mimes hook:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers