I have a new problem:
code:
file_obj = open(os.path.abspath(save_path + 'firsthand/' +
file_name + '.jpg'), 'wb')
file_obj.write(myfile.file.read())
file_obj.colse()
return 'ok'
error:
<type 'exceptions.IOError'> at /admin/product/new
[Errno 2] No such file or directory:
'G:/do/alldo/autopart007/static/test/firsthand/12672a96f13cb6aab3f2664439199d20.jpg'
and the G:/do/alldo/autopart007/static/test/firsthand/ is exist, why this
file had not been created?
--
大郎:百才招聘(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
-~----------~----~----~----~------~----~------~--~---