The Uploaded File Exceeds the Upload_max_filesize Directive in Php.ini Wamp Server

Have you always tried to upload something on WordPress, just to be greeted by this eerie message maxim "the uploaded file exceeds the upload_max_filesize directive in php.ini"?

Information technology is understandable how frustrating information technology can be when an error similar this ruins your workflow or even your whole day. And to top information technology off, for someone unfamiliar with an fault like this, it can be very time-consuming and frustrating trying to figure out the cause and solution to information technology.

But accept no fright, we understand your frustration because we've all been through this trying to work with WordPress at some point in time, and nosotros know how much time an error like this can take up from your working hours.

And then, don't worry and sit dorsum tight, we'll show yous some quick and easy solutions to this problem.

When Does "the uploaded file exceeds the upload_max_filesize directive in php.ini." Mistake Occur?

This mistake occurs when yous try to:

  1. While uploading a large image, a file, or a video to your WordPress website.
  2. Installing a large plugin or theme.
  3. Exceeding the max upload file size.

Here we'll show you lot a pace-by-step guide on how you tin solve this result.

But First, Let's Get to Know The Causes Backside This Issue in the First Place.

Many reputable hosting companies bolster their ad campaigns using words such every bit "unlimited, unrestricted, uncapped, etc."

But that is just not true. Ad campaigns containing taglines such as "unlimited in terms of storage and bandwidth" are far from reality.

Certain companies tend to save upwards on their valuable resources past putting restrictions on their servers by non allowing files with a size exceeding 25 Mb or higher.

Is WordPress to Blame for This Error?

The answer is a resounding no. WordPress has null to do with php.ini. Or the error that ensues titled "the uploaded file exceeds the upload_max_filesize directive in php.ini."

This php.ini. doesn't come with the default WordPress installation.

You can check it yourself, by downloading the original WordPress file straight from the official website.

WordPress File

All the limitations that proceed to the uploaded file exceeds the upload_max_filesize directive in php.ini. WordPress error is imposed past the hosting services and the server's stop of the whole ordeal.

Allow's start with the solution:

iii Easy Means to Fix "the uploaded file exceeds the upload_max_filesize directive in php.ini." Error

Method 1: WordPress cPanel

If your hosting service provider uses cPanel, you tin can edit your php.ini. and customize the upload_max_filesize directive value via the cPanel.

cPanel makes it piece of cake for users to manage their websites right from ane panel.

cPanel provides a dedicated tool for increasing the max upload size limit chosen "MultiPHP INI Editor".

From the "MultiPHP INI Editor", you can edit the values for the max upload size limit.

From the MultiPHP Panel, click on the ''Configure PHP INI basic settings'' driblet-down card and select your WordPress website from this carte.

Here, you will find selected PHP directives. To solve your upload_max_filesize upshot, edit the following values as per your requirement.

  • post_max_size: 3000M
  • upload_max_filesize: 3000M

Enter your required value and put "M" after that, which stands for Megabytes.

Congratulations, you've merely edited your max file size value to 3GB.

Method ii: Edit php.ini via FTP

As you lot know, how the php.ini file controls, how your server works with PHP applications.

Starting time past connecting to your server via FTP and go to the website'southward root binder.

You lot tin edit the php.ini file already present in the root folder or create a new file named php.ini:

Create Php.ini file in FTP

Add or modify the code snippet given beneath:

Paste the code snippet into a new file, and conform the numbers to conform your needs.

Alternatively, if you're editing an existing file, find the aforementioned directives and modify the numbers accordingly.

Edit php.ini via FTP
          upload_max_filesize = 12M post_max_size = 13M memory_limit = 15M        

Method 3: Fixing the upload_max_filesize value by editing .htaccess values

The upload_max_filesize directive can also be modified by editing your website's .htaccess file if creating or editing the php.ini file does not work.

The first thing yous need to do is connect to your website via FTP and edit the .htaccess file found in its root binder.

Add the following code snippet, ensuring that y'all've adapted the values to as per your requirement:

          php_value upload_max_filesize (Value) php_value post_max_size  (Value) php_value memory_limit  (Value)        
Edit .htaccess via FTP

Bonus, For y'all GoDaddy users out in that location:

How to Set the 'uploaded file exceeds the upload_max_filesize directive in php.ini' Error in WordPress, GoDaddy:

If yous are facing a GoDaddy the uploaded file exceeds the upload_max_filesize directive in php.ini. error while trying to upload a new theme to your WordPress website or any large file.

And so follow these steps, and you should be able to solve this event:

Step one: Click on "My Account" on the GoDaddy dashboard.

My Account on the GoDaddy dashboard

Footstep 2: Click on the "Web Hosting" tab & the "Manage" push button.

Manage button on My Account

Step 3: Visit the cPanel Admin dashboard.

Visit the cPanel Admin dashboard

Step 4: Click the "File Manager" icon.

File Manager Icon on cPanel

As you click the "File Director", you will see a popup menu to select a directory. Select the "Document Root for".

Pace five: Right-click on the ".htaccess" file.

edit .htaccess file

Yous will find the ".htaccess" file correct under the "wp-includes" folder. Then, click "Edit" on the popup box.

Step six: Add the following code & hit save

          php_value upload_max_filesize 256M        

By following these simple steps, you will be able to resolve the uploaded file exceeds the upload_max_filesize directive in php.ini GoDaddy event.

And not just GoDaddy; like steps can be used to resolve the same consequence on all the popular web hosting services such as – Bluehost, Hostgator, Hostinger, Dreamhost, etc.

Summary

After you lot've successfully implemented all these changes, we promise that you lot're – the uploaded file exceeds the upload_max_filesize directive in php.ini mistake has been resolved.

If all went well, your php.ini edit worked perfectly and the values you lot have changed fixed your result.

To check if all the changes accept been implemented, only caput back to your WordPress Dashboard > Media > Add New and try to upload the file, you were initially trying to upload. At present yous should be able to upload the said file, without whatever worries.

Finally, we hope that y'all've found this helpful. Please do share this with someone who is going through a similar issue.

Saasland

villarrealshink1946.blogspot.com

Source: https://droitthemes.com/the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini/

0 Response to "The Uploaded File Exceeds the Upload_max_filesize Directive in Php.ini Wamp Server"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel