Spry Validation not Working with Pure PHP Upload 2
April 3, 2012 by Teodor Kuduschiev


I am trying to use Pure PHP Upload 2 and have a spry validation. I cannot get the validation to work.


The issue is that the Pure PHP Upload onSubmit code is overriding the Spry validation call.


Change the Form onsubmit from:
onsubmit="checkFileUpload(this,'',true,'','','','','','','');return document.MM_returnValue"
if (Spry.Widget.Form.validate(this)) {checkFileUpload(this,'',true,'','','','','','','');return document.MM_returnValue;} else {return false;}"

Basically, it says if the form is valid, run the upload code, otherwise return false (which cancels the submit).

Teodor Kuduschiev

Teodor KuduschievWorking as a QA Engineer at Dynamic Zones International BV. Along with the support and the forums, he's taking time to create awesome designs.

See All Postings From Teodor Kuduschiev >>

Place your comment about Spry Validation not Working with Pure PHP Upload 2

You must me logged in to write a comment

Be the first to place a comment