banner



How To Upload Videos Larger Than 64mb On Wordpress

6 Ways To Increase the Maximum Upload File Size in WordPress

This is a guest postal service by Mustaasam Saleem from Cloudways.

When yous have a WordPress website, yous have to upload files every at present and and so to proceed your site agile and pretty. And then you need to know that there is more than than one way to upload your film, theme, or whatsoever other content to your WordPress.

Basically, there are three ways to upload files in WordPress:

  1. Log in to your hosting provider past accessing their online file manager.
  2. Connect to your server via an FTP client like FileZilla.
  3. Upload your media, themes, or plugin files directly from the WordPress Dashboard.

If you desire to upload annihilation other than media, themes or plugins, you lot can ever upload them via a file manager. All the same, for all normal uploads, but navigate to your desired location within the WordPress Dashboard and choose add/upload file.

For example, if you lot want to add a video, navigate to Media -> Add together New and either select the file from your computer or you can just elevate and drop it in the box. Here's a screenshot:

File Size Error on WordPress

Did you detect something weird, though? No, not in the article. In the screenshot above. Yes, the maximum upload file limit of just 5MB. Isn't this off-putting? And this limit too applies when you want to upload a theme or plugin straight from the WordPress Admin Dashboard. This threshold varies from hosting to hosting though. Some even let only 2MB past default while others may allow more.

Don't worry though; we're here to tell you exactly how to increase the upload limit.

Permit's go started without further ado.

While there are several ways to remove this cap on file size, we'll exist working with three settings within PHP that should deal with the upload limit. Let's ascertain the settings first so that y'all know what yous're actually doing:

  • upload_max_filesize
    This defines the maximum upload limit for files.
  • post_max_size
    This defines the maximum upload limit that will be handled in a POST request.
  • memory_limit
    This defines how much memory is allocated for PHP. This number should be equal or college than the upload_max_filesize.

Permit'southward presume we have a 20MB file. We'll gear up the upload_max_filesize to 25MB, post_max_filesize to 27MB, and memory_limit to 30MB.

Here are the steps you tin can take to increase the upload limit. Depending on your server, any one of them should work.

Note

Please brand sure to create a fill-in file before making any changes.

1. Create or Modify PHP.ini file

PHP.ini contains the PHP configuration for your server. You can find it in the root directory of your server. Go to your hosting root directory and search for php.ini file. Due to security reasons, it might exist hidden, so don't forget to bank check "Prove hidden files".

Open up php.ini file with any text editor and search for the iii settings to alter them according to your requirement. Nosotros'll use the post-obit numbers for this instance:

File size to be uploaded: 20MB.

  • upload_max_filesize = 25MB
  • post_max_size = 27MB
  • memory_limit = 30MB

If you didn't discover the php.ini file, don't worry! Yous can create information technology with a Right Click of your mouse and selecting Add New File. Open the new file and paste the three lines above and save it as php.ini.

Sometimes your server's php.ini file is named as php5.ini, hence, don't get confused between the two.

ii. Create or Modify .htaccess

.htaccess is an important file and contains various configurations for your server. Most hosting providers keep it hidden though. To modify it, you demand to check "Show Hidden Files" one time again and locate .htaccess file inside the root directory of your server.

Open it with any editor and paste these 3 lines at the finish of the file where it says #END WordPress:

  • php_value upload_max_filesize 25MB
  • php_value post_max_size 27MB
  • php_value memory_limit 30MB

If you don't observe the .htaccess file, you lot tin create one and paste the default WordPress .htaccess file attributes then paste the three lines above to increment the upload limit.

3. Modifying a WordPress file

If the above two methods didn't work for you, at that place is e'er an alternative. Yous can paste the post-obit three lines within your WordPress files. These lines tin be written in wp-config.php, themes functions.php file etc. Nonetheless, this is not the recommended way to increment upload file size limit.

  • @ini_set( 'upload_max_size' , '25MB' );
  • @ini_set( 'post_max_size', '27MB');
  • @ini_set( 'memory_limit', '30MB' );

4. Directly from the Platform

Some WordPress Hosting providers like Cloudways accept a built-in feature to change the file size limit. Here is how you tin can exercise it directly from the platform if you have Cloudways as your hosting provider:

Get to Servers from the bar on the tiptop and get into your desired server. Select Settings & Packages from the left pane and you lot'll see Upload Size under basic settings tab. Change it to your requirement. In our case, nosotros'll employ 25MB.

Cloudways Edit Memory

5. Plugin

If yous don't want to exercise it manually, there is always a plugin in the WordPress repository. You but demand to find the right plugin that is compatible with your current WordPress version. Try using Increase Upload Max Filesize which is compatible with the latest version of WordPress.

From the left pane of your WordPress Dashboard, navigate to Plugins -> Add New, search for the Increase Upload Max Filesize plugin from the top right corner, and Install it.

Install the plugin

In one case the plugin is activated; navigate to its settings and enter the desired size for your new upload size.

Enter the value

That's it! You have just increased the WordPress Maximum Upload File Size Limit.

vi. The last resort pick

If nothing else works, simply ask your hosting provider to increase the file size upload limit on your WordPress application and they'll surely help you out. Cloudways 24×7 support is highly responsive and you'll be able to piece of work your way towards your goal within no time.

If yous know whatever other means to increase the file upload size limit, feel free to share it past using the annotate section below. Also, let us know which pick worked perfectly for your WordPress awarding!

Avatar

About The Writer

Mustaasam Saleem is the WordPress Customs Manager at Cloudways (A Managed WordPress Hosting Cloud Platform). He actively shares what he knows near WordPress in the Community. When he is not working behind his computer screen, y'all can discover him playing squash with his friends. Connect with Mustaasam via @MustaasamSaleem.

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

Posted by: marquezobarresidde.blogspot.com

0 Response to "How To Upload Videos Larger Than 64mb On Wordpress"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel