Hello guys, I'm trying to validate and save and image from FieldStorage()
of ckeditor (not from the web2py slices)

i'm using the validor IS_IMAGE() like this
IS_IMAGE()(request.vars['upload'].value)

I'm getting the following "invalid image" message.

('\x89PNG\r\n\x01\x11\x10\x81\xad\x04d\xd8le\xa1=\x11\x1\***sniped****ab\xe3\x04So\xe8K~\x00\x00\x00\x00IEND\xaeB`\x82',
'Invalid image')

Do i need to decode/scape the string  or something to make it work?

I'm a bit lost at this point...

Cheers.
Chris.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CA%2Bs%2BuJtSO5_vNv1%3DRRjnxHXGhPeK8UU5xCA2p9kyC_%2BSiCp2JQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to