How to convert a javascript Object into an actual file in order to upload with HTML5
<p>I have a javascript object with a huge amount of data in it, including several large base64 encoded strings.</p>

<p>We are currently sending the data to the server via a simple ajax POST but since the data is so large the wait time for the user is unacceptable.</p>

<p>For this reason we wish to harness the new html5 file upload features and actually measure the progress as the data is uploaded to the server so that the user is provided with constant feedback during this lengthy process.</p>

<p>In order to use this feature this large array will have to be sent as an actual file rather than as a huge object sent as url params.</p>

<p>Is there any way to either:</p>

<p>A. Convert this object into an actual text file and send it that way.</p>

<p>or</p>

<p>B. Hook into the html5 progress api and actually measure the progress of this standard ajax POST.</p>

<p>Thanks in advance.</p>
