javascript - Remove data from form Data in java script -
this question has answer here:
- how remove value formdata 2 answers
how can remove appended data form data in java script? using form data uploading file , passing handler. code:
var formdata = new formdata(); var uploadfiles = $("#imagesupload").get(0); var uploadedfiles = uploadfiles.files; (var = 0; < uploadedfiles.length; i++) { formdata.append('file', uploadedfiles[i]); }
you can't remove data you've appended formdata
object. there nothing exposed in api allow this. create new formdata
.
Comments
Post a Comment