npm install
npm start
- open http://localhost:4002/
- create an file tag
<input type="file" name="file" />
- put into an form
<form method="POST" action="/upload" enctype="multipart/form-data"></form>
- form must have
enctype=multipart/form-data
- create an iframe
- set
form.target
to the iframe - submit the form and will find result in the iframe. usually listner to iframe.load event.
- File API
<input type="file" name="file" />
- FileReader API
- FormData
- send the FormData async
- Using Files from Web applications
- File API
- FormData API
- It was mentioned that for IE 10/11, "Partial support refers to not supporting json as responseType". But did not find such issue during testing in IE 10/11
- Input File type
- RFC1867 - Form-based File Upload in HTML
- RFC2388 - Returning Values from Forms: multipart/form-data
- W3 - File API
- See the LICENSE file