Hi friends,

 I have a HTML form by which one can upload a file.
the form code is

<form action="my.py" enctype="multipart/form-data">
<input type="file" name="upload" >
<input type="submit">
</form>

I read the contents of that uploaded file in "my.py" as
req.form['upload'].value for content and req.form['upload'].filename
for its name and i store the file in my hard disk. Now i expect the
same if the user uploads any zip file. Now i testing for zip file
uploading. But i couldn't move further in zip file operation.

When  i return the "req.form['upload'].value" form "my.py" for zip
file uploading, i got the following things

PK
�����`¦÷<��������������test/UT        �$cJL-cJLUx�����PK
�����`¦÷<&u6��������test/test.pyUT �$cJL%cJLUx�����summa
PK
�����`¦÷<�������������
��������íA����test/UT�$cJLUx��PK
�����`¦÷<&u6�������
��������¤8���test/test.pyUT�$cJLUx��PK������‡���}�����

Dont get confusion, this is what i got (symbols).

Can anyone help me regarding this?

with regards,
V.Raja Pandi
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to