File-serializer for multiple uploaded files

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

File-serializer for multiple uploaded files

Adam
Hello,

I've been reading all the documentation on how to upload and use oxf:file-serializer, but I can't seem to get it to file-serialize multiple files that I upload.  The XML structure produced by the xml-converter shows there is 1 main <parameter> node that has n <value> elements with the original filename and the temporary filepath, but I can't seem to get it to serialize multiple files at once.  If you could please advise on how to set this up, I'd greatly appreciate it!  I'm using the standard example code found online for the /xforms-upload/ app, and I'm able to file-serialize 1 file (the first file) with no problem.

Thanks in advance,

-Adam
Reply | Threaded
Open this post in threaded view
|

Re: File-serializer for multiple uploaded files

Erik Bruchez
Administrator
Adam,

Do do this with XPL you would need to use p:for-each to iterate over
each file in the request. See:

http://wiki.orbeon.com/forms/doc/developer-guide/xml-pipeline-language-xpl#TOC-p:for-each-element

-Erik

On Mon, Nov 7, 2011 at 10:45 PM, Adam <[hidden email]> wrote:

> Hello,
>
> I've been reading all the documentation on how to upload and use
> oxf:file-serializer, but I can't seem to get it to file-serialize multiple
> files that I upload.  The XML structure produced by the xml-converter shows
> there is 1 main <parameter> node that has n <value> elements with the
> original filename and the temporary filepath, but I can't seem to get it to
> serialize multiple files at once.  If you could please advise on how to set
> this up, I'd greatly appreciate it!  I'm using the standard example code
> found online for the /xforms-upload/ app, and I'm able to file-serialize 1
> file (the first file) with no problem.
>
> Thanks in advance,
>
> -Adam
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/File-serializer-for-multiple-uploaded-files-tp4015050p4015050.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
>
>


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