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 <canvas>
. I could append these to a FormData
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).
Is it possible to get my binary image data in the form, submit synchronously, and still be "recognisable" as a request.FILES
object server side? If so, how do I do this?