Hello,
I configured a file upload but when I load op a file which is bigger than 75Kb the Max Size Error Message doesn't apply.The form can be saved and uploaded to the database without the file because it was to big.
Can anyone tell me what I configured wrong. Because I want the error message to pop-up when anyone wants to load up a file which is bigger than the allowed max. size.
[attachment=0]Chronoforms.png[/attachment]
Hi T4Y,
Do you have an Event Loop action in the On Fail event of the Upload Files action?
Bob
Yes, that was the solution! I had forgotten to place an event loop. Now this works fine.
But I have a new problem in the same issue.
Since I placed an event loop, an error-message appears in the form and you first have to pick the right file before the submit-button on the form will do its work. So far so good.
The problem is that all the other already filled 'upload file' fields in the same form (which where filled with a file to upload before the error-message appears), are empty again. So after the error-message I have to fix the error problem and also fill the other upload file fields again by selecting the files again.
I want the already filled 'upload file' fields kept filled while an error-message appears, so the user only have to fix the error problem without having to check and fill the form again before submitting the form.
Do you have an answer for this?
Hi T4Y,
I'm not sure that there is any way of doing that. You actually need the local file paths re-published, not just the file names and ChronoForms doesn't know what those are.
I think that someone may have posted some JavaScript here to check a file -size before upload but it was a while ago and I'm not sure if it worked or not.
Bob
Ok, Bob thank you for your answers.
This topic can be closed.