How do I append binary file data to a <form> and submit it synchronously?
<p>I've got a template that works nicely with synchronous submission. I've got a couple of images that I'm trying to upload with the form, having resized them in the browser to the desired size in a <code>&lt;canvas&gt;</code>. I could append these to a <code>FormData</code> object, but I'm trying to avoid asynchronous submission because I'd really like to reprocess the template through the django template context processor (for various reasons).</p>

<p>Is it possible to get my binary image data in the form, submit synchronously, and still be "recognisable" as a <code>request.FILES</code> object server side? If so, how do I do this?</p>