Question about upload control ?

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

Question about upload control ?

Wang Yan
Hi, I know I've already asked this question, however I'll try for the last time !

As we know, we can find a upload control example on Orbeon. This one allows someone uploads a file and displays the content in the Browser.   My question is  :

is there a way to upload a file and store it on the local disk neither to open it  just put somewhere ?

thank you.

-----------------------------------------------------
Romandie Annonces : http://annonces.romandie.com
Petites annonces 100% gratuites entre romands
-----------------------------------------------------




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Question about upload control ?

Erik Bruchez
Administrator
Yan,

> Hi, I know I've already asked this question, however I'll try for the
> last time !

> As we know, we can find a upload control example on Orbeon. This one
> allows someone uploads a file and displays the content in the Browser.  
> My question is  :

The above is not correct. The Orbeon Forms upload control, well, uploads
a file on the server. It doesn't display the content of the file in the
browser. See it in action online:

   http://www.orbeon.com/ops/xforms-upload/

If you are under the impression that the control displays the content of
the file, could you please tell us what example you are looking at, and
maybe what version of Orbeon Forms?

> is there a way to upload a file and store it on the local disk neither
> to open it  just put somewhere ?

Yes, that's what the upload example does:

   http://www.orbeon.com/ops/xforms-upload/

When you upload files with that example, the files are uploaded to the
server. Uploaded content is made available either as Base64-encoded
binary in an XForms instance, as an URL stored in an XForms instance
(recommended so the content doesn't stay in memory). In that case, the
URL points to a temporary file on the server. If you want to do more
with that file, you can copy it, for example using a pipeline, the URL
generator and the File serializer, as mentioned in my answer to one of
your posts:

http://www.nabble.com/Code-%3A-Upload-file-problem%2C-second-time%21-tf3178181.html#a8844200

-Erik

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws