Appending using formData.append returns undefined
hi guys
I am uploading an image using formdata append, which works well
How do I append extra values from a textbox or hidden field ?
Here is my code, which returns undefined
- function AjaxUploader(input) {
- var formData = new FormData();
- formData.append('file', input.files[0]); /// This works
- var token = $('#__RequestVerificationToken').val();
- formData.append('__RequestVerificationToken', token); /// this returns undefined
- ,