Uploading Files to Server and Saving them

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

Uploading Files to Server and Saving them

Phani S
Hi all,
        I need to upload files to server. I am using the sample given in examples, xforms-upload. But it is uploading to temp file. When the user confirms the upload again I want to save these files to a different location on hard-disk. For this I would like to invoke a servlet and save them to a different location. How can I do this. The files are also stored in temp format. How to save them in their original format by invoking a servlet.

thanks in advance.

--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9010093398


--
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: Uploading Files to Server and Saving them

Jeroen Hoffman
Hi,
After upload all needed information about the file is present in your instance,
see http://www.orbeon.com/ops/doc/reference-xforms-guide#xforms-upload.

Then, you may submit your instance to an xpl pipeline and use an
oxf:url-generator to read the file, see
http://www.orbeon.com/ops/doc/processors-generators-url. Writing it could take
place in the pipeline too, maybe using the file serializer
(http://www.orbeon.com/ops/doc/processors-serializers#file-serializer).

If you do want to use a regular servlet to submit your instance to you have to
parse it yourself to get the information needed.

HTH
Jeroen Hoffman


Phani Sajja wrote:

> Hi all,
>         I need to upload files to server. I am using the sample given in
> examples, xforms-upload. But it is uploading to temp file. When the user
> confirms the upload again I want to save these files to a different
> location on hard-disk. For this I would like to invoke a servlet and
> save them to a different location. How can I do this. The files are also
> stored in temp format. How to save them in their original format by
> invoking a servlet.
>
> thanks in advance.
>
> --
> Phani. S
> M.Tech(Software Engineering)
> Motilal Nehru National Institute of Technology
> (+91) 9010093398
>


--
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