In /administrator/index.php?option=com_media
upload file(s) larger than allowed limit
Error message: Uploaded file(s) are larger than allowed limit.
Error message: You have tried to upload file(s) that are not safe.
Docker image php:7.3-apache
#15466 was based on incorrect assumption, that JInputFiles get()
returns null only if unsafe file was uploaded. But it is also null if upload_max_filesize
is less than uploaded file(s) (at least in my environment).
In the controller, there are some checks if the file is too large to upload, but they are called too late in the process.
administrator/components/com_media/controllers/file.php
Labels |
Added:
?
|
It’s not, it’s just a regular jpeg. I haven’t found similar issue on GitHub.
In my environment, $_FILES
global array is empty when file(s) exceed the limit and this is the reason files->get()
returns nothing.
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-30 21:41:12 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_By | joomla-cms-bot | ⇒ | SharkyKZ |
Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27717
Please test PR #27730.
Is the uploaded file of type zip? If yes, see #26408.