Ken,

thanks for your sample.

> def upload(self, environ):
>     myfile = request.POST['myfile']
>     fileName = myfile.filename
>     myfile.file.close()

What happens if you do not use the provided data? It should be
technically possible to ignore the user supplied data completely. So
the application should at least continue to work if you modify the
controller as follows:

def upload(self, environ):
    #myfile = request.POST['myfile']
    #fileName = myfile.filename
    #myfile.file.close()
    pass

The temporary file should imho be deleted automatically without
explicit close() as soon as it is no longer referenced (it is a python
tempfile).
Does your app continue if you change it as above? Continue in this
context means: Do you also get one of the following messages?

- "The connection was reset(Mozilla)"
- "The page cannot be displayed (IE)"

regards,

/ch


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to