Note that there are some explanatory texts on larger screens.

plurals
  1. POAjax image upload in Django using Django-imagekit
    primarykey
    data
    text
    <p>I've been trying to get my head around uploading image files in Django. There are several tutorials that I have followed and they do help a bit, for example <a href="http://kuhlit.blogspot.co.uk/2011/04/ajax-file-uploads-and-csrf-in-django-13.html" rel="nofollow">this one</a> and <a href="http://embrangler.com/2010/08/ajax-uploads-images-in-django/" rel="nofollow">the one here</a>.</p> <p>While they do give a basic idea of what is happening/how to think about it, I am not yet able transfer that to ImageKit implementation of ProcessedImageField.</p> <p>My problem is the following: I have several ProcessedImageFields. To upload new pictures, I use a form with a slightly modified ClearableFileIput widget, which displays a thumbnail above the standard 'Choose file' button. This works absolutely fine, the user is able to select a couple of files(one for each field), upload them all at once when the form is saved. <strong>I use S3 for storing data using django-storages.</strong></p> <p>I would like to be able to add an ajax upload functionality on those so that image processing could be delegated away from the form saving. When the user chooses the image, it should be uploaded and its updated once the file is processed. Then changes to the model should only be preserved if the user actually saves the form, otherwise new files should be discarded. </p> <p>Any ideas where to start looking? Perhaps there are projects that use Django-Imagekit that use one of the existing django ajax libraries? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload