The form is very simple:
- a file upload element
- a textbox
- a submit button
In the Onsubmit event I put a "custom server side validation" where I check the textbox value.
In the On success part I put an "Upload Files" action.
The max file size is 100000 KB.
The server php.ini file size limit is 50MB.
If I try to upload small files (I checked up to 2-3 MB) everything is ok. Then I tried with 10MB, 27MB, 38MB and I get an error.
This is what I get:
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => uploadBI
[event] => submit
[Itemid] =>
)
Validation Errors:
Array
(
)
Data Array:
Array
(
[option] => com_chronoforms
[tmpl] => component
[chronoform] => uploadBI
[event] => submit
[Itemid] =>
)
Validation Errors:
Array
(
)
Error 2
Wrong text
----
I put some debugger in the onsubmit event (see the attached image).
"Error 2 / wrong text" is the message associated with Custom Server Side Validation OnFail event. That is somewhat unexpected. That validation is about the textbox (a simple if($form->data['mytextbox']!="abc") then return false;) not the file.
I expected a possible error in the OnFail of Upload Files (3).
I checked the log files on the server (I don't have full access to the log files, I can view only an excerpt) but there's no message about any kind of upload error.
Any clue on what's going on here?
thank you
maxx