fine uploader - Fineuploader validate first time second time skips validation -
i have given ajax call check duplicatefile name in database wan each file name unique , on return returning false if there duplicate file name.
this works first time when try upload same file again uploads without calling validation event. not using validationbatch event.
onvalidate: function(data, btnname) { var filename = data.name; //duplicate file name check var result = $.ajax({ type: "get", url: '../referredfieldselector/checkduplicatefilename?filename=' + filename, async: false, cache:false }).responsetext; if (result == 'true') { showduplidatefilepopup(filename); return false; } }
anything wrong ?
also using itemlimit option in validation restrict no of files getting alert 2 times each time when item exceeds itemlimit.
Comments
Post a Comment