Hosted and Managed WordPress installs have become very popular. Most providers are the the same, providing highly available WordPress installs designed to make your WordPress site as fast as possible. One downside of a hosted/managed WordPress install is the fact that you don’t have as much control over things as well as less visibility into the configuration of the system than you have would if you hosted it yourself.
A perfect example of this is the PHP upload limit, which by default imposes a low file size limit for media uploads into your WordPress installation. Now, every hosting provider has such a limit as it is a function of PHP, and thus is configurable in various .ini files (php.ini, php5.ini, user.ini, et all). However, the way to go about modifying this limit can be very troublesome to figure out, as it varies with each provider. Some hosting providers will also not allow you to increase this limit at all.
So, to overcome this limit, this is what I do.
- Use an FTP client to upload my large image archives (.zip, some > 2GB) to the /wp-content/uploads/.
Now, this will get my huge files onto the server, but they still won’t be visible in the Media page. The reason is, the database has not been updated with the location and file information of the archive I just uploaded. If I had uploaded the file via the Media page, then it would have shown up automatically as part of the upload process also updates the database — but the file was too large to upload via that, remember? So I..
- Use the “Add From Server” plugin, available through your WordPress plugin page or from https://wordpress.org/plugins/add-from-server/
With this plugin installed and activated, you can go to Plugins > Add From Server > and browse to the /wp-content/uploads folder and choose the file you just uploaded, and click Import.
What this will do, is create the required pointer(s) within the WordPress database, and your file will then be selectable from the Media page. This is a simple way to get large files into your WordPress install without having to mess with PHP configuration files or digging through your hosting providers documentation.
Hope this helps.
All data and information provided on this site is for informational purposes only. The author(s) make no guarantees as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors or omissions in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.
For the GoogleBot:
file_uploads, post_max_size, upload_max_filesize