When i upload a file using
<xforms:repeat nodeset="instance('files-instance')/file" id="files-repeat"> <xforms:upload ref="."> <xforms:filename ref="@filename"/> <xforms:mediatype ref="@mediatype"/> <xxforms:size ref="@size"/> </xforms:upload> </xforms:repeat> to an eXist xquery, how do i know the paramnames under which the files are uploaded? xquery looks like this: ... let $file1 := request:get-uploaded-file("WHAT_TO_PUT_HERE") Kind regards, Teun -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- 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 |
Administrator
|
Teun,
On Nov 21, 2007 7:58 AM, Teun van Eijsden <[hidden email]> wrote: > When i upload a file using > > <xforms:repeat nodeset="instance('files-instance')/file" > id="files-repeat"> > <xforms:upload ref="."> > <xforms:filename ref="@filename"/> > <xforms:mediatype ref="@mediatype"/> > <xxforms:size ref="@size"/> > </xforms:upload> > </xforms:repeat> > > to an eXist xquery, how do i know the paramnames under which the files > are uploaded? xquery looks like this: > > ... > let $file1 := request:get-uploaded-file("WHAT_TO_PUT_HERE") to eXist directly. In general, this won't be the case if you are using XForms. Instead you will have an instance that either contains the file base64-encoded, or a URL to the file on disk. I hope this helps, but and if does not, maybe you can tell us more about you would like to do. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise 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 |
Free forum by Nabble | Edit this page |