Form uplad : file created in {play_path}/tmp/

118 views
Skip to first unread message

cx42net

unread,
Apr 19, 2011, 10:04:00 AM4/19/11
to play-framework
Hi!

Is there a reason while, when I upload a file to my server, Play
creates a unique-id file, like 0851e44f-8d7e-4afd-8edf-3d9bd6c909c9,
containing all the submitted data ?

Nowhere in my code I do this kind of creation !

Thanks for your help!

Morten Kjetland

unread,
Apr 19, 2011, 11:29:35 AM4/19/11
to play-fr...@googlegroups.com

Play stores the file temporarily, then give your controller a File object as ref to it. The file is deleted whn the request finishes.

-morten

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

cx42net

unread,
Apr 19, 2011, 11:42:18 AM4/19/11
to play-framework
For the uploaded Files I agree, but Play create a file in tmp/ that
contain all the submitted data (POST & FILES), and that file isn't
removed after the request finishes, and I don't know why :/

On 19 avr, 17:29, Morten Kjetland <morten.kjetl...@gmail.com> wrote:
> Play stores the file temporarily, then give your controller a File object as
> ref to it. The file is deleted whn the request finishes.
>
> -morten
> On Apr 19, 2011 4:04 PM, "cx42net" <cx42...@gmail.com> wrote:> Hi!

Morten Kjetland

unread,
Apr 19, 2011, 12:02:50 PM4/19/11
to play-fr...@googlegroups.com

Which version are you using?

-morten

cx42net

unread,
Apr 19, 2011, 12:07:40 PM4/19/11
to play-framework
Play 1.2

On 19 avr, 18:02, Morten Kjetland <morten.kjetl...@gmail.com> wrote:
> Which version are you using?
>
> -morten

cx42net

unread,
Apr 19, 2011, 12:14:48 PM4/19/11
to play-framework
I discovered that the file is created on the
play.server.StreamChunkAggregator.java:51.
but I can't find where that file is deleted or/and why it isn't
deleted.
Reply all
Reply to author
Forward
0 new messages