You forgot the enctype attribute of the form tag
form name=uploadform enctype=multipart/form-data
2010/10/31 He Jibo hej...@gmail.com:
Hi, Can someone teach me how to parse a file uploaded to GAE?
I am writing a feature that users can upload a .csv file, and save
data into the data model. I
Hi, Can someone teach me how to parse a file uploaded to GAE?
I am writing a feature that users can upload a .csv file, and save
data into the data model. I have already implemented the uploading,
see the link below:
http://gae-hejibo.appspot.com/TestUpload
But I do not know how to parse it, and
I am not a Python person but you said the file was 'comma' separated yet it
looks like (again, I am not a Python person) you are using tab instead of
comma to split your input.
On Sun, Oct 31, 2010 at 2:29 PM, He Jibo hej...@gmail.com wrote:
Hi, Can someone teach me how to parse a file uploaded
Thanks for your quick response. The '\t' is a problem, but I think it is not
a reason why the code does not work. Even if I do the following code,
without any code for csv, it does direct my to debug.html after file upload.
It seems the page is not posted file I clicked 'upload' in the page at
Like I said, I am not a Python person though I find Python quite easy to
read so perhaps a real Python person can help you with your request.
Certainly, though, splitting your input on tab when it was comma separated
would have presented an issue so I am glad I could offer you some help.
Good