Forums

Multipage form: problem with file upload exceeding max file size

enriture 16 Oct, 2015
Hi everybody.
I've a problem with a multipage form featuring a file upload action on the first page: I've set "Max file size" to 1024 KB, and an Event Loop (quit next actions =yes) in the OnFail field.
If I try to upload a file bigger than 1024 KB, and then click the OnSubmit button (in the show html action, advanced multipage field, i've set "submission event = page2") I'm able to go to the second page of the form, where I see on top the error message saying that the file exceeds the allowed limit.
Is there any way to prevent the user to go on the second page, if the uploaded file is bigger than 1024KB?

Thank you in advance.
GreyHead 16 Oct, 2015
Hi enriture,

That should work correctly - is the Event Loop action still set to point to the On Load event?

Bob
enriture 16 Oct, 2015
Yes, the target of the Event Loop is "OnLoad"
GreyHead 16 Oct, 2015
Hi enriture,

Please take a Form Backup using the icon in the Forms Manager and post it here and I'll take a closer look.

Bob
enriture 16 Oct, 2015
Here's the backup

This is private content

GreyHead 16 Oct, 2015
Answer
1 Likes
Hi enriture,

The sequence of your form is I think:

On Load > On pagina 2 > On invio > Redirect to PayPal or End

The Upload Files action is in On pagina 2 (there is another one is On Submit that I don't think is used). The Event Loop in the On Fail action points to On invio - I think that should be On Load.

Bob
enriture 16 Oct, 2015
Thank you!
You're right, I was looking at the wrong OnFail action, now it works!
This topic is locked and no more replies can be posted.