File uploads using Ajax has become the de facto standard on the web. People want to see what they have chosen right after selecting a file instead of seeing it after submitting a form. Also, if the form has validation errors, nobody wants to select the files again; the file should still be selected in the form with validation errors.
There is a third-party app,
django-ajax-uploader, that can be used to upload images with Ajax. In this recipe, we will see how to do this.
Let's start with the