Hi,
I'm trying to use the Upload control in OPS, but am having some problems. Should it be possible to store a base64Binary representation of a file using the code below? The Upload control displays fine and appears to work, but doesn't seem to actually store the data in the instance. Is there some OPS-specific function that I need to call, or am doing something else wrong? Many thanks, Dan <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <xf:model id="mdl"> <xf:instance id="inst"> <data xmlns=""> <file filename="" content-type=""> <attachment xsi:type="xsd:base64Binary"/> </file> </data> </xf:instance> </xf:model> </head> <body> <xf:upload ref="instance('inst')/file/attachment"> <xf:filename ref="../@filename"/> <xf:mediatype ref="../@content-type"/> </xf:upload> </body> </html> -- 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
|
Dan,
Oops, I think you hit this bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=303986&group_id=168&atid=350207 I know this is a shame, but in the meanwhile you can use xforms:bind/@type. -Erik [hidden email] wrote: > Hi, > > I'm trying to use the Upload control in OPS, but am having some problems. > > Should it be possible to store a base64Binary representation of a file using the code below? The Upload control displays fine and appears to work, but doesn't seem to actually store the data in the instance. > > Is there some OPS-specific function that I need to call, or am doing something else wrong? > > Many thanks, Dan > > > <?xml version="1.0" encoding="UTF-8"?> > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <head> > <xf:model id="mdl"> > <xf:instance id="inst"> > <data xmlns=""> > <file filename="" content-type=""> > <attachment xsi:type="xsd:base64Binary"/> > </file> > </data> > </xf:instance> > </xf:model> > </head> > <body> > <xf:upload ref="instance('inst')/file/attachment"> > <xf:filename ref="../@filename"/> > <xf:mediatype ref="../@content-type"/> > </xf:upload> > </body> > </html> 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 |
Free forum by Nabble | Edit this page |