On Oct 14, 7:45 am, Juliusz Gonera <[email protected]> wrote: > > I'm making a Pylons app which will handle some quite big file uploads > which will be later processed in a separate thread so that the user > doesn't have to wait until the processing is finished. When are > uploaded files deleted from temporary directory? Are they deleted at > the end of an action? Should I copy the uploaded file first to some > storage directory before starting the thread? >
The long and short is that the file object you have access to during the request is temporary. As soon as it is closed (when the request is finished, at the latest), it will be wiped from the system. You'll need to copy the file with shutil.copyfileobj. I think you'll need to read this page: http://wiki.pylonshq.com/display/pylonsdocs/Form+Handling Pay close attention to "File Uploads", which should answer most of your questions. -- 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.
