cedric1962
New Member
i'm using blueimp jQuery file upload plugin in my project , but what i want is to add an extra check feature before uploading files , this extra check feature is based on calculating each file's SHA-256 hash then when i get this SHA-256 hash i will send it to a page for existence check , at last i get a NO or YES response ;and here's my issue :HOW can i disable a file in the List if the response is YES .here's what i did till now : \[code\]isThisFileExist:function (S) { var that=this; $.ajax({ type: "POST", url: "filecheck.asmx/checkthisfile", data: "{ 'name': '" + S + "'}", contentType: "application/json", dataType: 'json', async: true, cache: false, success: function (data) { if (data.d =='exists'){ that.disable_start_button(); $('#exists').css({'color':'red'}).show(); $('#checking').hide(); } else { $('#exists').hide(); $('#checking').hide(); that.enable_start_button(); } } });\[/code\]and here's what i get for one file :
many thanks