J3 Issue ?
avatar thaneshs
thaneshs
4 Sep 2018

Steps to reproduce the issue

Added form with Joomla standard field type => file to upload all file formats

Expected result

Array with upload file details

Actual result

Zip file upload is not supporting. Getting an empty array on below code,
JFactory::getApplication()->input->files->get('jform', array (), 'array');

Additional comments

We need to allow zip file to upload if server supports zip upload.

avatar thaneshs thaneshs - open - 4 Sep 2018
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Sep 2018
avatar zero-24
zero-24 - comment - 4 Sep 2018

Can you please check the options you made in com_media for the allowed types? Do they include zip? What mime type does your zip have? Is that mime type whitelisted?

avatar thaneshs
thaneshs - comment - 4 Sep 2018

yes, i have updated zip file extensions in both MIME Types(application/zip) and Extensions (zip,ZIP) under media.

Its not supporting zip upload. I am getting empty array on zip upload. I hope Joomla supports

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Sep 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Sep 2018
Category com_media
avatar SharkyKZ
SharkyKZ - comment - 4 Sep 2018

File field type doesn't use any settings from com_media. This is filter doing its job. Certain archives are scanned for PHP files:

// Which file extensions to scan for .php in the content
'php_ext_content_extensions' => array('zip', 'rar', 'tar', 'gz', 'tgz', 'bz2', 'tbz', 'jpa'),

You can avoid this by setting filter to raw and doing custom filtering in your code.

avatar brianteeman brianteeman - change - 4 Sep 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 4 Sep 2018
avatar thaneshs thaneshs - change - 10 Oct 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-10-10 10:55:35
Closed_By thaneshs
avatar thaneshs thaneshs - close - 10 Oct 2018

Add a Comment

Login with GitHub to post a comment