This is the code what i use to save the file.
tmpData = str(rawData)[1:].strip(' ')
tmp = tmpData.split('\\r')
for piece in tmp:
for slice in piece.split('\n'):
if 'Content-Disposition' in slice:
filename = slice.split(';')[2].split('=')[1]
h = open('home/hidura/'+filename.strip(' '), 'wb')
elif
Hello, i control the problem of the data what is uploaded by the POST
method, in the web if the file is a text theres no problem
but the trouble comes when it's an enconded file as a Picture or other what
the when the system insert the data into the file
well it doesn 't encoded in the write
On Fri, Oct 1, 2010 at 11:13 PM, hid...@gmail.com wrote:
Hello, i control the problem of the data what is uploaded by the POST
method, in the web if the file is a text theres no problem
but the trouble comes when it's an enconded file as a Picture or other what
the when the system insert the
Chris Rebert c...@rebertia.com writes:
On Fri, Oct 1, 2010 at 11:13 PM, hid...@gmail.com wrote:
Hello, i control the problem of the data what is uploaded by the POST
method, in the web if the file is a text theres no problem
but the trouble comes when it's an enconded file as a Picture or
The results was that, i can upload all the data normally comes as an byte
code and looks like this: