Hi,
ok, this is a bit complicated.
Joomla! itself goes through a lot of trouble to prevent the upload of files which might potentially be unsafe.
Zip files are one of those file types and using the Joomla! core functions without further options, a zip-file is checked several times for potential unsafe content.
If a zip file contains executables (like .php files or jar or py or inc...) upload is prevented by Joomla! unless it is explicitely stated, that you want to allow the upload those zip files as well. So first of all the upload in your test does not fail because of the size of the file but because of it's content.
I didn't realize this restrictions before in this details, only used the Joomla! Core functions in order to deliver save code. But actually I think this is very reasonable and the aim of core functions is, to make the live of a developer easier (make it easy to deliver save code) and don't bother him to much with very specific details. Because allowing the update of zip files that contain executables may really be dangerous and should only be allowed if you know what you do!
Make the upload of zip files, that contains file types which are on the "unsafe" list of Joomla!, possible in Visforms would need a lot of additional options, because I would not like to simply enable the upload of zip files for everybody who enters the "zip" in the list of allowed extensions. Maybe I can implement that in the future but not before I know exactly how I want to handle security risks.
If you want to do it anyway you have to change the source code in one Visforms files at two lines.
It's the
Code:
components/com_visforms/models/visforms.php
Change (line 508)
Code:
$file = $this->input->files->get($field->name);
to
Code:
$file = $this->input->files->get($field->name, null, 'raw');
Change (line 559)
Code:
if (!JFile::upload($file['tmp_name'], $file['filepath']))
to
Code:
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))
This will prevent Joomla! from checking the type of files in zips and allow the upload with all potential risks.
Please remove the link to the image with your php setting information. I do not need this any longer and I think this is information which should stay private.
Regards,
Aicha