Re: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
The screenshot is captured with chrome extension, then, capture all page
and save to png.

The problem is caused by s3_folder_storages. I am replacing the
DEFAULT_FILE_STORAGE bY s3boto storage.

I think as field is ImageField png or jpg are valid images

Best Regards


On Thu, Nov 8, 2012 at 1:21 PM, Dennis Lee Bieber wrote:

> On Wed, 7 Nov 2012 21:10:06 -0800 (PST), Carlos Aguilar
>  declaimed the following in
> gmane.comp.python.django.user:
>
> > Hello,
> >
> > I am working in a project that requires you upload an image in a model.
> The
> > project was started by other developer.
> >
> > Today testing, without realize changes in the model I am receiving the
> > following error:
> >
> > 'cStringIO.StringO' object has no attribute 'size'
>
> Is that a cut? If it is, I suspect a typo...
>
> >
> > I not have idea what is causing the error, then I appreciate your help to
> > fix this.
> >
> > One screenshot of the error:
> >
> > <
> https://lh6.googleusercontent.com/-duPf2J5ejnI/UJs-gygXKgI/CDA/SmKl6Zk2sPM/s1600/waitress-error.png
> >
>
> What type of screen are you using... Even at "full view" my browser
> shows ant droppings... The text lines are TWO PIXELS tall!
>
> Not to mention you called it a PNG file, but that site is displaying a
> JPEG.
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Carlos Aguilar
Consultor Hardware y Software
DWD
http://www.dwdandsolutions.com
http://www.houseofsysadmin.com
Cel: +50378735118
USA: (301) 337-8541

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



Re: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
Yesterday doing few test I note that the problem is causes by the following 
configs

DEFAULT_FILE_STORAGE = 'waitress.apps.venues.storage.CachedS3BotoStorage'
DEFAULT_S3_PATH = "media"

I test 2 file storages one is s3_folder_storages.s3.DefaultStorages.

I am using the same config in other project without problems.

I will appreciate your help

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/8waBUK8RcFYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Help with error uploading files

2012-11-07 Thread Carlos Aguilar
Hello,

I am working in a project that requires you upload an image in a model. The 
project was started by other developer. 

Today testing, without realize changes in the model I am receiving the 
following error:

'cStringIO.StringO' object has no attribute 'size'

I not have idea what is causing the error, then I appreciate your help to 
fix this.

One screenshot of the error:



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/r9g4OfY4aygJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.