Enable zip extension in backend media manager.
joomla 3.4.8
https://github.com/joomla/joomla-cms/blob/master/libraries/joomla/input/files.php#L87
This is the issue: returning default is ok if there was nothing uploaded, not when there was indeed an issue.
Either the results array should be returned with error key set (but the regular php errors don't match that case), or an exception should be raised.
The latter is probably better but i am not sure about backwards compatibility
Issue remains on Joomla! 3.7.0-staging.
I can confirm the problem on 3.7.0-stagin
Status | New | ⇒ | Confirmed |
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-21 21:22:04 |
Closed_By | ⇒ | zero-24 |
Please test there.
the references pr doesn't fix the global issue, it only fixes it when using the com_media controller, but not the use of this code by 3rd party.
I don't see a way to do this without throwing an error which is IIRC not B/C and needs to be done in 4.0 Can you do a PR for that against the 4.0 repo and the the PR i have added?
@brianteeman
I would love to hear your suggestion on this because i think raising an exception would be a good thing to do.