Hi!
Awesome. Thank you all. :D
On 20 ene, 00:36, Armin Ronacher <[email protected]> wrote:
> Hi,
>
> saptah wrote:
> > But, I need to stream the file directly to the Hard Disk, and not
> > store it on RAM.
>
> That's what happening by default anyways. Werkzeug stores the file in a
> temporary file and keeps the file descriptor for reading and writing
> open. On POSIX systems the file is deleted right away so that closing
> the file descriptor deletes the file, on windows the file is deleted in
> the `__del__` (destructor) of the temporary file object.
>
> Usually all you have to do is to do something like this::
>
> request.files["yourfile"].save("where/you/want/to/put.it")
>
> save() also accepts a writeable file object.
>
> Regards,
> Armin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---