I have strange requirement thath I need upload file after form close. So user selects files I have event listener which set object File as global and after close form I wat to send it on server.
Is there is some hidden API to achive thath..... in JQuery I can
var formData = new FormData();
formData.append('file', file);
$.ajax({ url: '/',type: 'POST',data: formData,processData: false,contentType: false,success: function( res ) {// Handle it.}});
