How to run the xforms:upload ?

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

How to run the xforms:upload ?

ricetrac
Hello,
 
I use orbeon 3.5.
I want to upload file with <xforms:upload>.
The problem is that the url return " is temporary and only valid for the duration of the current request". So I can use the return's url only when the user push the button "upload".
After, when we return to the main page, the url is not valid any more.
 
But in the 3.6, the documentation is different :

The URL stored as the value of the upload is temporary and only valid until either:

  • the session expires,
  • the Java VM quits,
  • or a new file upload replaces the existing URI in the XForms instance.
So I think that in 3.6 I can use the return url until the session expires, not only when the user push "upload".
then, is it possible to upgrade only <xforms:upload> to the 3.6 version ?
Because I can't upgrade all my orbeon to 3.6. It's too late.
 
Sorry for my bad english.
 

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

--
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: How to run the xforms:upload ?

Erik Bruchez
Administrator
Julien,

I fear that no, you won't be able to just upgrade xforms:upload. The  
changes between 3.5 and 3.6 were quite large.

As a workaround, you could copy or rename the temporary file to a non-
temporary file. You could do it in XPL. The drawback is that it is  
more code to write.

-Erik

On Mar 12, 2008, at 9:09 AM, Bittard, Julien wrote:

> Hello,
>
> I use orbeon 3.5.
> I want to upload file with <xforms:upload>.
> The problem is that the url return " is temporary and only valid for  
> the duration of the current request". So I can use the return's url  
> only when the user push the button "upload".
> After, when we return to the main page, the url is not valid any more.
>
> But in the 3.6, the documentation is different :
> The URL stored as the value of the upload is temporary and only  
> valid until either:
>
> • the session expires,
> • the Java VM quits,
> • or a new file upload replaces the existing URI in the XForms  
> instance.
> So I think that in 3.6 I can use the return url until the session  
> expires, not only when the user push "upload".
> then, is it possible to upgrade only <xforms:upload> to the 3.6  
> version ?
> Because I can't upgrade all my orbeon to 3.6. It's too late.
>
> Sorry for my bad english.
--
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