[issue4953] Cannot upload binary file from form ?

2009-01-15 Thread oopos
New submission from oopos : Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32 - Hi,I user Python! UnicodeDecodeError Python 3.0: G:\cgi\python\python.exe Thu Jan 15 16:46:34 2009 A problem occurred in a

[issue4953] Cannot upload binary file from form ?

2009-01-15 Thread oopos
oopos added the comment: To Amaury Forgeot d'Arc : Thank you. That error have sloved with your way: [quote]Does it work if you change your script like this: opsform = cgi.FieldStorage(open(sys.stdin.fileno(), 'rb'))[/quote] Now,The new problem come out: [code] 97 &

[issue4953] Cannot upload binary file from form ?

2009-01-15 Thread oopos
oopos added the comment: Thank you for time. Now,I try with you saied.Bu it is taken wrong as before. See the files: Added file: http://bugs.python.org/file12753/full_source_and_error.zip ___ Python tracker <http://bugs.python.org/issue4

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-01-16 Thread oopos
oopos added the comment: Hehe. I only want to use python to slove the upload files instead of PHP.but it is hard to me or I have no much time to leran it. Now,I learn Perl quickly and use it upload files, it works ok. Thank you . I will take more time to learn Python language well. Best