Restrict Browse Files to Allowed File Types

[ad_1]

Is there a way to change the Windows “File Upload” dialog box from displaying “All Files” so that only allowed file types are shown? While testing, I accidentally picked an HTML file of the same name as the image I wanted and I ended up with a nasty error screen apparently powered by WordFence (which I hadn’t installed yet, so that was really puzzling. I concluded my hosting company may have WordFence on their server, but anyway…)

It would be ideal if users could only see files that were actually allowed for uploading. Second choice would be that the User Submitted Posts plugin would give the error message and not try to submit the form until the file chosen was fixed, so they wouldn’t see any really bizarre message.

And thanks for a great plugin!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer