Have you asked your hosts to check the max_file_size settings in your server’s php.ini file?
Thread Starter
termel
(@munger41)
Here is my php.ini
; Whether to allow HTTP file uploads.
; http://php.net/file-uploads
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; http://php.net/upload-tmp-dir
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 128M
upload_max_size = 64M
#post_max_size = 64M
#upload_max_filesize = 64M
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 50
Why are these configured to different file sizes?
upload_max_filesize = 128M
upload_max_size = 64M
Try increasing upload_max_size to 128M
How large are the files you are trying to upload?
Have you asked your hosts for assistance? They could still be blocking the uploads at their end.
Thread Starter
termel
(@munger41)
I thy to upload different file sizes from a few kB to a few MB.
No more success with :
upload_max_filesize = 128M
upload_max_size = 128M
I actually host myself on a dedicated server.
Maybe a recent apache update changed something?
-
This reply was modified 7 years, 1 month ago by
termel.
It does sound like there’s a problem on the server rather than in WordPress but I’d have thought that a released apache update would be pretty sound. That said, it could be that the upgrade wasn’t 100% successful. Can you rollback to the previous apache version?
-
This reply was modified 7 years, 1 month ago by
esmi.
Thread Starter
termel
(@munger41)
Thanks @esmi, but i would like to understand what is happening.
I have actually 2 php.ini files inside my /etc/php/7.0/apache2/ folder
-rw-r--r-- 1 root root 69373 févr. 28 16:22 php.ini
-rw-r--r-- 1 root root 71021 févr. 28 16:25 php.ini.ucf-dist
It seems the second overrides the first, as when i change values in it i can see the maximum upload size change in WP media upload admin panel….
Thread Starter
termel
(@munger41)
Although WP indicates a max upload file size of 15 MB, which is not what is set in both files (64M), can a third config file be overriding this ?
can a third config file be overriding this
Short answer: yes
Longer answer: WordPress itself doesn’t impose any file size limits. It uses the limits set by the server’s configuration.
Thread Starter
termel
(@munger41)
Can you imagine which file could override this ?