The uploaded file exceeds the upload_max_filesize directive
Posted on April 8, 2018 | http://p0wel.ly/v
Sometimes when trying to upload an image to your WordPress media library you will get an error that says “The uploaded file exceeds the upload_max_filesize directive in php.ini”, What this means in real terms is that the file is too big for your site.
While your first step should be resizing your images sometimes you will need the ability to upload larger files, and while you can upload your files via ftp if your hosting has cpanel you can change your settings to allow larger files to be uploaded through the WordPress media library.
1 . Log into cpanel, you’ll be able to get the details for this from your web host.
2. Scroll down to the “Software” section and click “Select PHP Version”
3. Click “Switch to PHP Options” in the top right hand corner.
5. Click on the value next to “upload_max_filesize” and a drop down menu will appear, select a file size then click “Apply” and then “Save.
6. You’ll now be able to upload larger files.
Andy Powell is a website specialist with 20 years experience, he is also the founder of Hack Oldham, a non profit co-working and maker space, a digital trainer and a maker of things.
If you found this post useful you could show you're appreciation by buying me a coffee. echo wp_get_shortlink()?>