Can any one tell me how to increase file upload si

2019-08-01 16:20发布

问题:

I have trouble with wordpress file uploading limit. right now i have 8MB limit. but i want to increase it to 100 MB to 200MB. Please guide me how to do it.

回答1:

Take a look here : http://mynotes.farkess.com/2012/08/02/wordpress-increase-media-upload-size/ it's worked for me with wordpress 3.4.1, it just need editing 2 wordpress database entry.



回答2:

Just try with this one

@ini_set( 'upload_max_size' , '64M' ); in function.php


回答3:

You should change upload_max_filesize in your php.ini:

upload_max_filesize = 32M



回答4:

Try these settings in your .htaccess file:

php_value post_max_size 100M
php_value upload_max_filesize 100M

If that doesn't work, or your code starts throwing an error, then you're probably on a shared host that won't let you increase the size.



回答5:

1) Use FTP to download a copy of your php.ini file
2) modify that file to have the following lines:
   memory_limit = 100M
   upload_max_filesize = 192M
   post_max_size = 100M
   file_uploads = On

3) save, close and rename that file to "php5.ini" and upload it to the wp-admin folder
of your wordpress install



标签: wordpress