Upload limit with php.ini in WordPress

Question:

Please do you know how to change the Configuration

PHP > no Cpanel > software/serviços > 
    > File Uploads  upload_max_filesize Maximum allowed size for uploaded files 

from 2M to 10M (for example)?

Remembering that I've tried all the ways indicated: via htaccess, php.ini, upinfo.php. I asked Locaweb for help, but they put me on the road with an online agent (machine) more uninformed than me.

I have an xml file to upload, which is blocked by this configuration.

Answer:

I assume you have a php host and have cpanel access to it, the first thing I would try would be to put a php.ini file in /public_html with the following content:

;;;;;;;;;;;;;;;;
; File Uploads ;
; ;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 128M 

Or put your php.ini for us to take a look at.

Scroll to Top