Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size?
Bonus question: Can I limit users to only be able view files they have uploaded themselves?
|
Is there a way in WordPress 3.1 to restrict allowed file uploads by extension (images only) and file size? Bonus question: Can I limit users to only be able view files they have uploaded themselves? |
||||
|
|
|
I believe you can add a filter to The filter:
From what I understand this will not work for admins or any user with the An alternative to control size limit would be to use .htaccess or php.ini: For upload limit you can set in .htaccess one of the following;
For php.ini you can set |
||||
|