Kenneth and all,

This probably needs more explanation, otherwise I'll keep misleading
people into answering some question other then mine.
I store the file in a custom storage (picasaweb) that I've implemented
myself. The file never touches my filesystem and always stays a stream
or whatever file-like object it is until it's gone to the custom
storage for good.
It's possible to resize it in the custom storage stage just before
saving, but it would be the wrong way since if I change the storage to
something else I would need to reimplement the bit. So the right place
is just before saving the form.
Another detail - I use ModelForm to reduce writing, so basically
everything is automated by Django.

So... now with this detail - would anyone have a suggestion?

Thanks,
Igor




On May 26, 9:00 am, Kenneth Gonsalves <[email protected]> wrote:
> On Wednesday 26 May 2010 12:12:39 Igor Rubinovich wrote:> But I really want 
> to do what I said I want to do.
>
> > Does anyone has a suggestion?
>
> http://docs.djangoproject.com/en/dev/ref/request-response/#httpreques...http://docs.djangoproject.com/en/dev/topics/files/#topics-files
>
> basically django stores the filename in the db and the actual file on the
> filesystem, so to manipulate, all you need to do is find the file on the
> filesystem and modify it using standard python.
>
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to