Quantcast
Channel: WebConsulting | Website Optimisation, SEO & Design – Brisbane
Viewing all articles
Browse latest Browse all 9

How to Increase your WordPress Max Upload Limit

$
0
0

A common problem faced by many WordPress users – particularly when they host their site under a shared hosting environment (such as GoDaddy or HostGator) occurs when they try to upload an image, audio or video file, and they come across an error something along the lines of the following :

Filenamehas failed to upload due to an error
This file exceeds the maximum upload size for this site.

This error typically occurs when the hosting environment imposes a memory or file size limit. The error indicates that there is a restriction on the amount of memory the system can allocate to perform a file upload, and there is not currently enough memory available.

Usually this issue can be resolved as follows

Create a php.ini file

Create (using notepad) a file called php.ini with the following contents (or edit the existing file if one already exists) and upload it to the wp-admin directory :

;; set memory limit for cache.php
memory_limit = 64M
upload_max_filesize = 5M
post_max_size = 5M

And that’s it. Save, upload, test and check for additional errors.

What if it doesn’t work !!!

Your host may not allow the Memory Limit increase, or they may have a setting which overwrites (or limits) the changes you made. If nothing seems to work, contact your host provider and find out if they allow you to increase that limit and which method ought to be used.


Viewing all articles
Browse latest Browse all 9

Latest Images

Trending Articles





Latest Images