banner



How To Change Wordpress Maximum Upload Size

increase upload size wordpress

WordPress is a powerhouse with so many themes and plugins that permit you to build just virtually any kind of website. From ecommerce to a simple weblog, WordPress has yous covered. Nevertheless, when choosing a web hosting for WordPress, y'all should consider functioning, security, and support in the first identify.

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

500 Internal Server mistake always seems to come at the well-nigh untimely way and users of a sudden go to find how to get a WordPress website online.

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

Managed WordPress Hosting Starting from $ten/month.

Guaranteed improvement in Cadre Spider web Vitals scores. three-day complimentary trial.

To check what is the current max upload size limit in your WordPress site so navigate to WP Admin → Media → Add New. Y'all will run into the electric current max upload size on the bottom as shown in the screenshot.

WordPress increase upload size

If the current max upload size limit meets your demand so yous can exit it as it is. Nevertheless, if it doesn't then don't fret, there are many ways y'all 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 Option
  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. However, some may not work on the majority of the spider web hosts. In this case, the all-time solution is to contact your hosting provider.

1. Update .htaccess file

If your spider web server is using Apache and PHP is set equally an Apache module, so you tin 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 up .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 volition define the max upload size in Megabytes. Replace the numbers as per your requirement. The max execution time and max input time 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.

ii. Edit Functions.php File

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

Y'all can easily increase the size limits past calculation the following lines of lawmaking in the functions.php file of your theme.

Withal, remember if y'all change the theme then max upload size volition render to its default values until you 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' );

3. php.ini Option

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

Open any text editor and create a new file. Copy the following lawmaking and save it equally 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 inside the same root folder.

four. Increase Upload Size in Multisite

If you are running WordPress multisite, then upload size can be increased from settings. This increase is dependent on your server settings. If your server is set to 20MB you lot cannot increase WordPress upload size to 25MB. Notwithstanding, if your server is set to 20MB your network setting is set to xv MB then you tin resolve the result by increasing the upload size to 20MB.

wordpress multisite maximum upload file size

5. wp-config.php File

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

wp-config.php

Open the file in any text editor and add 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.

6. Plugin Method

Non everyone is a fan of writing code 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 volition be using is the Increment Max Upload Filesize plugin.

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

increase file upload size wordpress plugin

Click theSave Changes button to utilise the new upload size.

seven. Contact Your Hosting Provider

If y'all do not want to edit the files yourself then you can always contact your hosting provider to do it for you lot.

If y'all are using Cloudways WordPress managed hosting, then you tin easily increment the max upload size limits of all your websites on a single server through the options in the platform. It is only a matter of a few clicks and if you are not using Cloudways and so yous tin can request a Cloudways demo to Tell us your hosting challenges. Hosting plans for Cloudways involve pinnacle providers AWS, Google Compute Engine, Vultr, Linode and DigitalOcean. With such a variety of options, no claiming is besides large 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 equally shown in the screenshot. Don't forget to click on Save Changes at the bottom of the screen.

Conclusion

WordPress is a versatile CMS. There is ever a way to do something. If you are non able to observe an respond to whatsoever of your bug pertaining to WordPress, then you lot tin can always go and ask in the ever helping the WordPress community. I am too a role of that awesome community, and then you can always accomplish out to me equally well.

Share your opinion in the comment department. COMMENT At present

Share This Article

Client Review at

"Beautifully optimized hosting for WordPress and Magento"

Arda Burak [Bureau Owner]

Ahsan Parwez

Ahsan is the Customs Squad Manager at Cloudways - A Managed Deject Hosting Platform. He loves to solve issues and assistance Cloudways' clients in whatsoever aspect he can. In his free time, you lot tin find him playing RTS PC games.

Source: https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/

Posted by: autreysuccans.blogspot.com

0 Response to "How To Change Wordpress Maximum Upload Size"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel