Upload temporary file volatility

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Upload temporary file volatility

Nathan Jones-2
In the Orbeon XForms documentation it states: "The URL stored as the
value of the upload is temporary and only valid for the duration of the
current request". Does this mean that any background submission of a
file upload should immediately move the temporary file to a less
volatile location? Can we not safely use the temporary URL for as long
as the instance data is in the session?

- Nathan


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Upload temporary file volatility

Erik Bruchez
Administrator
At the moment, the temporary file should remain available until:

* the session expires
* a new file upload replaces the existing URI
* the VM quits

So you shouldn't have to immediately copy the file as long as the user
is interacting with the page. But it is also safe to copy it.

-Erik

Nathan Jones wrote:
> In the Orbeon XForms documentation it states: "The URL stored as the
> value of the upload is temporary and only valid for the duration of the
> current request". Does this mean that any background submission of a
> file upload should immediately move the temporary file to a less
> volatile location? Can we not safely use the temporary URL for as long
> as the instance data is in the session?
>
> - Nathan

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Upload temporary file volatility

Erik Bruchez
Administrator
FYI I updated the doc to be more precise on this topic.

-Erik

Erik Bruchez wrote:

> At the moment, the temporary file should remain available until:
>
> * the session expires
> * a new file upload replaces the existing URI
> * the VM quits
>
> So you shouldn't have to immediately copy the file as long as the user
> is interacting with the page. But it is also safe to copy it.
>
> -Erik
>
> Nathan Jones wrote:
>> In the Orbeon XForms documentation it states: "The URL stored as the
>> value of the upload is temporary and only valid for the duration of
>> the current request". Does this mean that any background submission of
>> a file upload should immediately move the temporary file to a less
>> volatile location? Can we not safely use the temporary URL for as long
>> as the instance data is in the session?
>>
>> - Nathan
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws