Implementing Drag-and-Drop File Uploads (^) ❘ 315
Check for the existence of the FormData object to see if a more recent revision of drag-and-drop
upload is supported by your browser. The FormData object is provided by the browser and facilitates
the creation of the HTTP request that will ultimately pass the uploaded fi le data across the Internet.
In this example, the FormData object creates a POST request with encoding multipart/form-data. In
a traditional fi le upload, you would have to add multipart/form-data to the
elliott
(Elliott)
#1