Re: S3 tutorial for File Storage Refactor?

2008-09-04 Thread David Larlet
Hi Jay, Thanks for the patch, I need to spend more time on this but I had pushed your correction. Any feedback is really appreciated. Best, David Le 2 sept. 08 à 18:22, shadfc a écrit : > To fix the corrupt images error, add > content.open() > to the top of _save() on the S3Storage class (or

Re: S3 tutorial for File Storage Refactor?

2008-09-02 Thread shadfc
To fix the corrupt images error, add content.open() to the top of _save() on the S3Storage class (or at least before the chunks() or read() calls). This basically causes a seek(0) on content. I think perhaps some of the image validation reads part of the file and doesn't reset the pointer back t

Re: S3 tutorial for File Storage Refactor?

2008-09-01 Thread Ramdas S
David, I think this is still not fixed. I am getting the same errors R On Aug 25, 2:02 pm, David Larlet <[EMAIL PROTECTED]> wrote: > Le 20 août 08 à 17:56, shadfc a écrit : > > > > > > > With the code from the django-storages you referenced installed > > somewhere on PYTHONPATH, its as easy as

Re: S3 tutorial for File Storage Refactor?

2008-08-25 Thread David Larlet
Le 20 août 08 à 17:56, shadfc a écrit : > > With the code from the django-storages you referenced installed > somewhere on PYTHONPATH, its as easy as setting a few things in your > settings.py. You can see the docs for the code at > http://code.larlet.fr/doc/django-s3-storage.html. Put the Req

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread shadfc
I don't think its as simple as that. As I said, "no software I have will recognize them as valid images". This includes GIMP, Eye of Gnome, etc. All say that it is not a valid image or is corrupted. Jay On Aug 20, 12:41 pm, Martin Diers <[EMAIL PROTECTED]> wrote: > I would suspect that  #2 is

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread Martin Diers
I would suspect that #2 is a mime-type problem, which is just an S3 property. Presuming the ImageField translates to a basic href into S3, the mime-type property of the file would need to be set or else it is going to come across as a Binary file. Some browsers are ok with this non-standa

Re: S3 tutorial for File Storage Refactor?

2008-08-20 Thread shadfc
With the code from the django-storages you referenced installed somewhere on PYTHONPATH, its as easy as setting a few things in your settings.py. You can see the docs for the code at http://code.larlet.fr/doc/django-s3-storage.html. Put the Required and Optional (if you want it, obviously) stuff