I am trying to build a file upload browser client using javascript and HTML 5. From file input form (input type "file") in webpage, browser provides a file handle with the html 5 File Object (http://www.w3.org/TR/FileAPI/) . Upload is done using this file object. But I want a file upload to be resumed if the upload is not complete. For, this to work I need the File object with me while trying to resume upload. cookies and html 5 localstorage store only primitive data types and not objects. Is there a way to store/retrieve the file object, or, extract the actual file handle from the object, store it and make the File object using its constructor function.
Server will maintain the upload states, only thing the client needs to do is store and retrieve this file object. Any suggestions/ workarounds for the client code?