def POST(self):
i = web.input(myfile={})
name = i.name
category = i.category
...
this_file = i.myfile
if this_file:
from PIL import Image
import os
...
UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0:
unexpected code byte
but "return this_file.filename", it is ok. why?
--
大郎:百才招聘(baicai.com).产品部
Email: [email protected]
Gtalk: [email protected]
twitter.com/qichangxing
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---