Hi,
I'm trying to get XForms upload to work: <xf:instance id="instance"> <service> <upload> <remotefile>inputfile.csv</remotefile> <file filename="" mediatype="" size=""/> <label>Browse for file containing points:</label> <description>This should be an upload, not an input!</description> </upload> </service> </xf:instance> <xf:bind nodeset="instance('instance')/upload/file" type="xs:anyURI"/> <xf:group ref="instance('instance')"> <xf:upload ref="upload/file"> <xf:label><xforms:output ref="../label"/></xforms:label> <xf:filename ref="@filename"/> <xf:mediatype ref="@mediatype"/> <xxf:size ref="@size"/> <xf:help><xforms:output ref="../description"/></xforms:help> </xf:upload> This displays the control fine and I can browse and select a file but when I look at the form that is submitted, I get: <upload> <remotefile>inputfile.csv</remotefile> <file filename="" mediatype="" size=""/> <label>Browse for file containing points:</label> <description>This should be an upload, not an input!</description> </upload> This is running 3.5.M1.200609291812. Any ideas? Cheers, Matthew -- 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 |
Administrator
|
Matthew,
I don't reproduce this with the attached example, which I mounted as follows in my main page flow: <page path-info="/test-upload" view="test-upload.xhtml"/> The example performs a submission with replace="all" to itself, and displays the submitted instance. Are you using replace="all"? -Erik Matthew Graham wrote: > Hi, > > I'm trying to get XForms upload to work: > > <xf:instance id="instance"> > <service> > <upload> > <remotefile>inputfile.csv</remotefile> > <file filename="" mediatype="" size=""/> > <label>Browse for file containing points:</label> > <description>This should be an upload, not an input!</description> > </upload> > </service> > </xf:instance> > > <xf:bind nodeset="instance('instance')/upload/file" type="xs:anyURI"/> > > <xf:group ref="instance('instance')"> > <xf:upload ref="upload/file"> > <xf:label><xforms:output ref="../label"/></xforms:label> > <xf:filename ref="@filename"/> > <xf:mediatype ref="@mediatype"/> > <xxf:size ref="@size"/> > <xf:help><xforms:output ref="../description"/></xforms:help> > </xf:upload> > > This displays the control fine and I can browse and select a file but > when I look at the form that is submitted, I get: > > <upload> > <remotefile>inputfile.csv</remotefile> > <file filename="" mediatype="" size=""/> > <label>Browse for file containing points:</label> > <description>This should be an upload, not an input!</description> > </upload> > > This is running 3.5.M1.200609291812. > Any ideas? > > Cheers, > > Matthew Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 test-upload.xhtml (3K) Download Attachment |
Free forum by Nabble | Edit this page |