Forums

File upload validation

alan.bagley 13 May, 2010
Hi,

I am working on a from that is displayed within a page with another chrono form on it: http://www.sueyatespersonnel.com/contact.html

The from on the right with the CV upload option all works, the problem I have is if a file type is selected that is not allowed i.e .jpg or .gif and I press submit the validation works but because I have submitted the form the form reloads on a new page with a URL like: http://www.sueyatespersonnel.com/index.php?option=com_chronocontact&task=send&chronoformname=uploadCV&Itemid=6

Is there a way to get the page with both forms to reload while retaining the data already entered and still have the error box showing that "1.Sorry, Your uploaded file type is not allowed"

Regards
Alan
GreyHead 15 May, 2010
Hi Alan,

Not easily I don't think.

I'm not even sure what is required here. I'd need to go and dig into the ChronoForms code and see exactly what is used to refresh the page after an error. The alternative I guess would be some kind of Ajax based check.

Bob
This topic is locked and no more replies can be posted.