This content has been marked as final.
Show 2 replies
-
1. Re: how to remove file from fileupload entry client side before upload
michpetrov Jan 8, 2015 4:40 AM (in response to krishchai)Hi,
since the file cannot be accessed on server before you upload it a server-side validation is probably not the right approach.
As for removing the file, the fileupload object has a method for that:
removeFile = function(index) { var fileUpload = $("form:fupload").component; fileUpload.remove(fileUpload.entries[index]); }
-
2. Re: how to remove file from fileupload entry client side before upload
krishchai Jan 8, 2015 10:24 PM (in response to michpetrov)thankyou michal,
i'm able to remove file from fileupload object on clientside by using your solution.
cheers.