maximum file size
-
I am trying out the User Submitted Post plugin and I have found that I am unable to upload some jpg files. However, under the settings” for the plugin, I cannot find a “maximum file size” setting ? Do I need to get the pro version in order to upload jpg’s larger than a certain size?
-
Glad to help. Actually your web host limits the file size allowed for uploads via several server parameters. In the free version of the plugin, you can set limits on the image width and height, but file size is a pro option. Either way, you will need to contact your host or developer about increasing the max allowed upload size in order to upload larger images than currently allowed. Also, here is a post on troubleshooting upload issues with more information.
I host my own site on VPS and I have the following config for php.ini and php5.ini
upload_max_filesize = 1024M
post_max_size = 1024M
php_value max_execution_time 500
php_value max_input_time 500I think this should allow me to upload more than 5M
I’m not sure then. I put all of my troubleshooting ideas into that article. If you would like, I would be glad to try uploading one of your images on a default WP installation. Just provide a link to any image that you are unable to upload, and I will investigate asap.
Hi Jeff,
Thanks for your response.
I have the following link on my website:
https://www.visorsourcing.com/IMG_0680-1.jpg
I put the file there through SSH.
Actually, the website that I am trying to build is on https://www.visorsourcing.com itself. Near the bottom of the page is the upload form.
Thanks
Peter
Thanks. So here is a quick video (zip file) that shows your file successfully uploaded via USP. This is on a default installation of the latest version of WordPress, running no other plugins, and using the default WP theme. You can verify normal functionality by testing in a similar environment.
So with that in mind, something is interfering with normal functionality in your particular setup. We’ve already ruled out server settings (e.g., post_max_size, et al), so that probably means that there is a conflict with some other plugin, or possibly a theme issue. The best way to find out is to do some basic troubleshooting. That link goes to a guide that explains how to do it (specifically check out the sections on troubleshooting “plugins” and “themes”.
Also important, I assume that you have sufficiently large values entered for the USP settings:
- Maximum image width
- Maximum image height
For example, in order to upload that image you provided, I increased those settings each to “10000” (ten thousand pixels).
I hope this is useful for you.
-
This reply was modified 8 years ago by
Jeff Starr. Reason: accuracy
-
This reply was modified 8 years ago by
Jeff Starr. Reason: clarity
-
This reply was modified 8 years ago by
Jeff Starr.
Thank you very much for that video.
I figured out the issue. As you mentioned before in your troubleshooting steps on your website https://plugin-planet.com/usp-pro-troubleshoot-file-upload-issues/, the “upload_max_filesize” is a directive to check on the Linux/Apache server, but the trick is to figure out where this directive was coming from. I figured out that it was coming from php.ini, but the other problem is there can be more than one php.iniSo my trouble shooting steps are as follows:
1) Create a file called phpinfo.php under the folder where you are hosting your wordpress site (ie. /var/www/my_site).
2) Add the content to phpinfo.php
<?php
phpinfo()
?>3) View this webpage through the site URL https://<site name>/phpinfo.php
It will load the php configuration, display a table and tell you the whole path to the php.ini file in the row titled “Loaded Configuration File”.
Under the row “upload_max_filesize”, it showed “2M”
4) Under Linux accessed the php.ini file and changed “upload_max_filesize” to 10M.
5) Restarted the Apache service
And your plugin worked!
Thanks.
Awesome, glad you got it!
Cheers
The topic ‘maximum file size’ is closed to new replies.