July 7, 201115 yr Hi guys. I have a few queries about the upload limit associated with Wordpress. I have a website with JustHost on shared hosting. The max file size for media uploads using Wordpress was 2MB. I contacted my hosting company and they have informed me that they have increased my upload limit to 10MB. It does say this in the php.ini file on my domain, but Wordpress says I have a limit of 8MB? Also I use WAMP as a local server to test my Wordpress websites. How can I increase the max file upload on the local server? I have read through lots of webpages and tried altering the php.ini file and htaccess file but I still get hit with a limit of 2MB on the local server. Is there anything else I should try to increase my upload file limit? Any help greatly appreciated
July 7, 201115 yr In the php.ini file there is often a post_max_size declaration as well which may be set to 8M. Ask your host to change this as well as the upload_max_size. I'm not on my Windows machine at the moment, but right click on the WAMP icon in the system tray and find the php.ini file. You can search for the declarations as above and increase the default values. You also need to restart the servers and you should be able to upload bigger files!
July 11, 201115 yr Author In the php.ini file there is often a post_max_size declaration as well which may be set to 8M. Ask your host to change this as well as the upload_max_size. I'm not on my Windows machine at the moment, but right click on the WAMP icon in the system tray and find the php.ini file. You can search for the declarations as above and increase the default values. You also need to restart the servers and you should be able to upload bigger files! I have found the php.ini file in WAMP and put in the following code. ; Maximum allowed size for uploaded files. upload_max_filesize = 8M ; Maximum size of POST data that PHP will accept. post_max_size = 8M I restarted WAMP but still limited to 2MB. Is the above code all thats needed in php.ini or should there be more there? Cheers.
Create an account or sign in to comment