How to Upload Large Files to Wordpress

Exercise you desire to increment the maximum file upload size in WordPress?

Sometimes a low file upload size limit tin terminate yous from uploading files with the media uploader or installing larger WordPress plugins and themes.

In this article, we'll show you how to easily increase the maximum file upload size in WordPress to set those issues.

How to increase the maximum file upload size in WordPress

Why Increase the Maximum File Upload Size in WordPress?

Your WordPress hosting provider will set a default maximum file upload size when y'all sign upwards and install WordPress. Your hosting provider defines this limit, and it usually ranges from 2MB to 500MB.

For most WordPress website owners, this limit will be more than enough.

Still, there are times when you lot'll need to raise this limit and so you don't run into upload errors.

For example:

  • Yous run a photography website and demand to upload large images.
  • Your design or photography portfolio has large images.
  • You desire to install a larger WordPress theme or plugin.
  • You want to sell digital products like eBooks, photos, videos, and more than.
  • You lot regularly update content and add audio, photos, and more that are beyond the electric current limit.

That beingness said, permit's show you how you can increment the maximum file upload size on your WordPress site.

Since nearly users have different WordPress hosting setups, we'll cover the following:

  • Check your maximum file upload size limit in WordPress
  • Contact your WordPress hosting provider
  • Edit your PHP.INI file in hosting business relationship dashboard
  • Add lawmaking to your functions.php file
  • Add code to your .htaccess file
  • Employ a WordPress plugin to increase file size limit

How to Check Your Maximum File Upload Size Limit in WordPress

WordPress will automatically show the maximum file upload size limit when you are uploading images or other media.

To check this, simply go to Media » Add New in your WordPress admin panel, and you will meet the maximum file upload size limit for your WordPress site.

Check current file upload size limit

Now that yous know how to find the size limit, allow'southward bear witness you how to increase the maximum upload size in WordPress.

Method 1. Contact Your WordPress Hosting Provider

I of the easiest ways to increase the maximum file upload size in WordPress is to achieve out to your WordPress hosting provider.

This is a relatively simple task for their customer service team and tin can be done in a couple of minutes.

For beginners, this can be much easier than adding lawmaking to WordPress and editing server files.

Simply head over to your hosting provider website, like Bluehost, and click the 'Chat' tab.

Then, enter your account details and fill out a back up request request to increase the file upload size on your WordPress site.

Contact support to increase file upload size

Yous can also reach out to support from inside your hosting account dashboard.

Method two. Create or Edit an Existing PHP.INI file

Another fashion to increase the maximum file upload size is by creating or editing a file chosen PHP.INI. This file controls a lot of settings for your WordPress hosting environment.

Most WordPress hosting providers like Bluehost have a beginner friendly cPanel to assistance manage your website.

If your web host has a cPanel dashboard, so you can increase the file upload size through the congenital-in tools.

Notation: The following is from the Bluehost cPanel, however, virtually shared hosting providers will have similar steps.

To exercise this, login to your WordPress hosting account dashboard and go to the 'Software' section.

Then, click on 'MultiPHP INI Editor'.

Click on MultiPHP INI editor

Next, scroll downwards to the section labeled 'upload_max_filesize' and enter a new maximum filesize into the box.

Then, click the 'Use' button.

Change max upload filesize in settings

Alternatively, yous tin can click the 'Editor Mode' menu tab and then you can change the maximum file upload size straight in the editor.

Yous demand to edit the 'upload_max_filesize' section to increase your file upload size.

In one case you're finished click the 'Save' button.

Change max upload filesize in code editor

Edit PHP.INI by Adding Lawmaking

If your current hosting provider doesn't offer the cPanel selection, and so you'll need to edit this file manually.

To exercise this, you can utilise an FTP client or the file managing director pick in your WordPress hosting control panel.

If you're using shared hosting, and then you might not see the PHP.INI file in your hosting directory. If y'all don't meet one, and so simply create a file named php.ini and upload it to your root folder.

Then, add the following code snippet to the file.

upload_max_filesize = 256M post_max_size = 256M max_execution_time = 300            

You tin modify the '64 M' limit to the file size you demand for your WordPress blog.

Method 3. Add Code to Your WordPress Theme functions.php File

This method involves adding lawmaking to your functions.php file in your WordPress theme.

If you oasis't done this earlier, then meet our beginner's guide to pasting snippets from the web into WordPress.

Afterwards that, y'all need to open up your functions.php file via FTP or the file manager app in your hosting business relationship dashboard.. To learn more, see our guide on how to use FTP to upload files to WordPress.

And so, add together the post-obit lawmaking snippet at the bottom of your functions.php file.

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

Method 4. Add Code to Your .htaccess File

Another manner to increment the maximum file size is by modifying the .htaccess file. This file controls the high level configuration settings for your website.

To do this, you need to log in to your website server via FTP. If you lot oasis't done this before, then run across our guide on how to employ FTP to upload files to WordPress for beginners.

After that, you demand to locate your .htaccess file in your website'southward root binder.

Open .htaccess file

If you tin't discover your .htaccess file, then it could exist hidden by your file manager or FTP client. To learn more, meet our guide on why you tin't find .htaccess file on your WordPress site.

Adjacent, y'all need to add the following code snippet to your .htaccess file.

php_value upload_max_filesize 256M php_value post_max_size 256M php_value max_execution_time 300 php_value max_input_time 300            

To increase your maximum file upload size fifty-fifty more, just change the '64M' to the size you lot require.

Method five. Use a WordPress Plugin to Increase File Upload Size

Another way y'all can increase the maximum file upload limit is by using the WP Increase Upload Filesize plugin. If you're non comfortable calculation lawmaking to WordPress, then this is a good pick for you lot.

First matter you need to practice is install and activate the plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, navigate to Media » Increase Upload Limit in your WordPress admin console.

This brings you lot to a screen where you can select a new file upload size in the 'Choose Maximum Upload File Size' drop down.

Then, click the 'Salvage Changes' button.

Increase file upload size with plugin

Notation: The maximum file upload size will be set up by your hosting provider. If you lot need a file size limit that'south larger than the one listed in the drib downwards, then you need to contact your hosting provider and ask to increase the limit.

Nosotros promise this article helped you increase the maximum file upload size in WordPress. You may as well want to run into our guide on how to choose the best website architect and our skilful picks of the best virtual business telephone number apps with free options.

If you liked this article, then please subscribe to our YouTube Aqueduct for WordPress video tutorials. You tin too discover us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if yous click on some of our links, then we may earn a committee. See how WPBeginner is funded, why it matters, and how yous can back up united states of america.

mcalroyclee1965.blogspot.com

Source: https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/

0 Response to "How to Upload Large Files to Wordpress"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel