The world is different when you have a custom manipulator. It's more
beautiful, except I can't find any docs on them anywhere.

Here, I am uploading email in my custom manipulator using:

    formfields.ImageUploadField(field_name="photo")

And showing it using {{ form.photo }} in my template which works
beautifully.

I was reading somewhere that I have to do:
     new_data.update(request.FILES)
in my view, which I have no idea why, but I don't object to it either.

Lastly, I want to save it. Well... I know where my image is:
     a = request.FILES['photo']['content']

I can even view it: (How cool is that!!!)
     return HttpResponse(a)

I know how to extract it's name:
     request.FILES['photo']['filename']

Now,
1. How do I actually save this into a file?
2. I need to resize the image and play with it with PIL. Is it possible
to transfer the image to an image object without saving it and then
giving it's full path to load it?

Thank you in advance for your response,
Armin

Reply via email to