Joomla 5 Notice

We are pleased to announce that as of October 14, 2025, all of our Joomla extensions are compatible with Joomla 6.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5 and 6!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

BUG ERROR: UPLOAD ZIP, RAR FILES

More
9 years 8 months ago #2567 by alexmurphy
Replied by alexmurphy on topic BUG ERROR: UPLOAD ZIP, RAR FILES
wow thx! fix it!!!

:lol: you are best :D

More
9 years 8 months ago #2571 by Administrator AV
Replied by Administrator AV on topic BUG ERROR: UPLOAD ZIP, RAR FILES
You're welcome!

:idea: I recommend you the new and up-to-date documentation for Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 4.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 4.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
9 years 2 months ago #3330 by alexmurphy
Replied by alexmurphy on topic BUG ERROR: UPLOAD ZIP, RAR FILES
hi Aicha!
can you update this fix with last version? :)

More
9 years 2 months ago #3331 by Administrator AV
Replied by Administrator AV on topic BUG ERROR: UPLOAD ZIP, RAR FILES
Hi,

as I wrote in a previous post:

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.


So the code chagnes I posted early are not a fix for me and I will not apply them to the Visforms Code.

Sorry but you have to make the changes again, after an update.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 4.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 4.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
9 years 2 months ago - 9 years 2 months ago #3332 by alexmurphy
Replied by alexmurphy on topic BUG ERROR: UPLOAD ZIP, RAR FILES
Yes but in the last version I have not found this code in the line 508 and in the line 559 :(
It is changed... :(

Can you update your previous solution? More thx!
Last edit: 9 years 2 months ago by alexmurphy.

More
9 years 2 months ago - 9 years 2 months ago #3333 by Administrator AV
Replied by Administrator AV on topic BUG ERROR: UPLOAD ZIP, RAR FILES
Hi,

oh sorry.

The code has been move to a helper file.
The file is administrator/components/com_visforms/helpers/visformsmedia.php

Line 132
Code:
$file = ($client == 'site') ? $input->files->get($field->name) : $files[$field->name];
Change to
Code:
$file = ($client == 'site') ? $input->files->get($field->name, null, 'raw') : $files[$field->name];
and line 184
Code:
if (!JFile::upload($file['tmp_name'], $file['filepath']))
to
Code:
if (!JFile::upload($file['tmp_name'], $file['filepath'], false, true))
Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 4.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 5:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 4.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 9 years 2 months ago by Administrator AV.
The following user(s) said Thank You: alexmurphy

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum