Wordpress htaccess upload only pictures

Hi

I have a blog with more then 3000 users.
They are aloud to publish, but I only want them to upload pictures (png/jpg) and no pdf or other documents.
How can I do this via .htaccess?

Thanks,
HP
HPvHAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DrDamnitConnect With a Mentor Commented:
You need a plugin that users the upload prefilter method to distinguish and discriminate files based on file extension or MIME type.

Try:

https://wordpress.org/plugins/enhanced-media-library/
0
 
gheistConnect With a Mentor Commented:
htaccess is not in position to distinguish upload content.
you need to add a filter to uploads (or tweak upload function in PHP)
0
All Courses

From novice to tech pro — start learning today.