MG 2.0 Cannot upload a file I should be able to

Mr Lucky

Well-known member
Licensed customer
I am testing Media gallery, and I am unable to upload a file of 9.5MB, even though I have permissions up to 40MB and loads of storage quota available. Can anyone explain why this might be, thanks.

upload.webp
 
This error is because the file is too large for PHP to actually accept the file (thus the max file size won't actually matter).

You need to increase upload_max_filesize (and possible post_max_size) in your php.ini file. This has to be done there as by the time PHP starts up (and XF starts), it's too late to change it.
 
Thanks Matt

Mike, would it be possible that the error message made it this obvious as I was scratching my head and testing and checking permissions for quite a while.
 
Should be sorted now Pete. BTW, max upload limit is 20M, so setting 40M won't work either.
No problem I won’t be allowing members to upload anything anywhere near that size, it was just me testing, so I set a large size so I could test why 9.5mb wasn’t working.
 
Back
Top Bottom