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
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
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
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
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
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
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
7 matches
Mail list logo