Thank you Guido for the answer, but I am having problem with this statement:
file_contents = request.FILES['myfile'].read()
I am getting this error "AttributeError: FILES" and I have to use
file_contents = request.get('myfile')
to make it work
Is request.FILES valid in GAE ?
Do you know where the documentation for this is?
I couldn't find anything on request.FILES in GAE website.
Thank you.
Details of the error
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py", line 501, in __call__
handler.post(*groups)
File "c:\helloworldform01\helloworld.py", line 52, in post
greeting.file1 = self.request.FILES['myfile1'].read()
File "C:\Program Files\Google\google_appengine\lib\webob\webob\__init__.py", line 500, in __getattr__
raise AttributeError(attr)
AttributeError: FILES