What Is the Maximum Upload Size for Wordpress Media Library

increase media file upload in wordpress

WordPress is a powerhouse with so many themes and plugins that let you to build merely most whatever kind of website. From ecommerce to a unproblematic blog, WordPress has y'all covered. However, when choosing a web hosting for WordPress, you should consider performance, security, and support in the offset place.

If you are building a WordPress website that hosts a portfolio with big image files or a video hosting site with a single media file size running into GBs, then y'all might face a roadblock of not being able to upload media files larger than 25MB (in near cases).

500 Internal Server error always seems to come at the most untimely manner and users suddenly become to discover how to become a WordPress website online.

By default, the maximum upload size in WordPress ranges from 2MB to 150MB depending on the settings of your spider web hosting provider is giving by default.

Managed WordPress Hosting Starting from $x/month.

Guaranteed comeback in Core Web Vitals scores. 3-mean solar day complimentary trial.

To check what is the electric current max upload size limit in your WordPress site then navigate to WP Admin → Media → Add together New. You lot will see the current max upload size on the bottom every bit shown in the screenshot.

WordPress increase upload size

If the current max upload size limit meets your demand then you can exit it equally it is. Yet, if it doesn't then don't fret, there are many means you can increase the max upload size in WordPress. I am going to highlight the post-obit ways in this tutorial.

  1. Update .htaccess File
  2. Edit Functions.php File
  3. php.ini Selection
  4. Increase Upload Size in Multisite
  5. wp-config.php File
  6. Plugin Method
  7. Contact Hosting Provider

Note: This guide is written to provide all possible solutions. Withal, some may non work on the bulk of the web hosts. In this instance, the best solution is to contact your hosting provider.

ane. Update .htaccess file

If your web server is using Apache and PHP is prepare as an Apache module, then you can add a few lines of code in your WordPress .htaccess file to increment the max upload size in WordPress.

To access your .htaccess file, connect to your server via FTP client and navigate to the folder where WordPress is installed. Open upwardly .htaccess file in a code editor or Notepad and add the following lines.

php_value upload_max_filesize 64M php_value post_max_size 128M php_value memory_limit 256M php_value max_execution_time 300 php_value max_input_time 300

This will define the max upload size in Megabytes. Supersede the numbers every bit per your requirement. The max execution time and max input fourth dimension are in seconds. The execution time defines the limit of time spent on a single script. Cull a number that is suitable for your site.

2. Edit Functions.php File

In some cases, you might not be able to access your .htaccess file or you are more comfortable editing WordPress theme files.

You tin can easily increase the size limits by adding the following lines of lawmaking in the functions.php file of your theme.

However, remember if you change the theme then max upload size will render to its default values until y'all edit the functions.php file of the new theme.

@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );

three. php.ini Option

This is a default file used to configure any application which runs on PHP. This file contains parameters required for file timeout, upload size, and resource limits. Admission your WordPress root directory using SSH or FTP and look for a php.ini file. In some cases, this file is not visible to the other option would be to create a new file instead.

Open whatever text editor and create a new file. Copy the following lawmaking and salve it as php.ini.

upload_max_filesize = 25M post_max_size = 13M memory_limit = 15M        

increase upload size wordpress in php.ini file

Now, upload that php.ini file using SSH or FTP within the same root folder.

4. Increment Upload Size in Multisite

If you are running WordPress multisite, then upload size tin can be increased from settings. This increment is dependent on your server settings. If your server is prepare to 20MB you cannot increase WordPress upload size to 25MB. However, if your server is fix to 20MB your network setting is set to fifteen MB then you can resolve the outcome by increasing the upload size to 20MB.

wordpress multisite maximum upload file size

5. wp-config.php File

Another way of increasing the upload size in WordPress is to define the size parameter in the wp-config.php file. To exercise that, access your WordPress root directory using SSH or FTP and locate a wp-config.php file.

wp-config.php

Open the file in whatever text editor and add together the following code.

@ini_set( 'upload_max_size' , '20M' ); @ini_set( 'post_max_size', '13M'); @ini_set( 'memory_limit', '15M' );        

Save your changes and it should increase your file upload size.

half dozen. Plugin Method

Not everyone is a fan of writing lawmaking or accessing root files using SSH or FTP. For that situation, the plugin comes in handy and luckily there is a WordPress plugin bachelor for increasing WordPress upload size. The plugin we will be using is the Increase Max Upload Filesize plugin.

Go to your WordPress DashboardPluginsAdd together new, search "Increase Max Upload Filesize" so actuate and install the plugin. One time installed, go to plugin settings and only enter the value for upload size.

increase file upload size wordpress plugin

Click theSalvage Changes button to employ the new upload size.

7. Contact Your Hosting Provider

If you practice non want to edit the files yourself then yous tin ever contact your hosting provider to do information technology for you.

If yous are using Cloudways WordPress managed hosting, and so you can hands increment the max upload size limits of all your websites on a unmarried server through the options in the platform. It is only a thing of a few clicks and if y'all are not using Cloudways then yous can request a Cloudways demo to Tell the states your hosting challenges. Hosting plans for Cloudways involve summit providers AWS, Google Compute Engine, Vultr, Linode and DigitalOcean. With such a multifariousness of options, no claiming is too big to overcome.

To edit the upload size limit, log in to your Cloudways business relationship navigate to Server nether the Server Settings & Packages edit the Upload Size field as shown in the screenshot. Don't forget to click on Salvage Changes at the bottom of the screen.

Conclusion

WordPress is a versatile CMS. There is always a fashion to do something. If you lot are not able to find an answer to whatsoever of your issues pertaining to WordPress, then you lot can e'er become and ask in the ever helping the WordPress community. I am also a role of that awesome customs, and so you can always accomplish out to me as well.

Share your stance in the comment section. Comment NOW

Share This Article

Customer Review at

"Beautifully optimized hosting for WordPress and Magento"

Arda Burak [Agency Owner]

Ahsan Parwez

Ahsan is the Community Squad Manager at Cloudways - A Managed Deject Hosting Platform. He loves to solve issues and help Cloudways' clients in whatever aspect he can. In his costless time, you can find him playing RTS PC games.

lockhartchemb1995.blogspot.com

Source: https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/#:~:text=By%20default%2C%20the%20maximum%20upload,provider%20is%20giving%20by%20default.

0 Response to "What Is the Maximum Upload Size for Wordpress Media Library"

ارسال یک نظر

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel