Contributor/Writer/Author can't upload media
-
Hey guys,
I have an issue with above named roles not being able to upload media (Editors can). They always get this error when trying:
File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.
In the plugin I have activated for them:
delete_posts ; edit_posts_ moderate_comments ; read ; read_private_pages ; read_private_posts ; unfiltered_html ; unfiltered_upload ; upload_files
With my Hoster I can edit stuff like that in the .htaccess – this is what I have so far (tried php54 as well):
AddHandler php56-cgi .php php_value memory_limit 256M php_value max_input_vars 10000 # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase // RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . ///index.php [L] RewriteCond %{HTTP_USER_AGENT} libwww-perl.* RewriteRule .* – [F,L] </IfModule> <IfModule mod_expires.c> ExpiresActive on ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" </IfModule> # END WordPress
Has anybody got an idea how to fix it?
Thanks,
eC
- The topic ‘Contributor/Writer/Author can't upload media’ is closed to new replies.