Thread: [Xsltforms-support] Upload - mediatype and filename not supported
Brought to you by:
alain-couthures
From: Ihe O. <ihe...@gm...> - 2012-12-14 15:06:40
|
I unsuccessfully tried to use the mediatype and filename children elements of xf:upload and got a message saying they were not supported. Said message was confirmed when I tried the example in the discussion section here. http://en.wikibooks.org/wiki/XForms/Upload#Uploading_Binary_Files Is this by design. |
From: Ihe O. <ihe...@gm...> - 2012-12-14 15:13:33
|
On Fri, Dec 14, 2012 at 3:06 PM, Ihe Onwuka <ihe...@gm...> wrote: > I unsuccessfully tried to use the mediatype and filename children > elements of xf:upload and got a message saying they were not > supported. > > Said message was confirmed when I tried the example in the discussion > section here. > > http://en.wikibooks.org/wiki/XForms/Upload#Uploading_Binary_Files > > Is this by design. If I may clarify my requirement. I want to upload the file as base64binary AND grab the filename and mediatype. |
From: Alain C. <ala...@ag...> - 2012-12-14 20:00:28
|
filename is now supported in the latest builds. -Alain Le 14/12/2012 16:06, Ihe Onwuka a écrit : > I unsuccessfully tried to use the mediatype and filename children > elements of xf:upload and got a message saying they were not > supported. > > Said message was confirmed when I tried the example in the discussion > section here. > > http://en.wikibooks.org/wiki/XForms/Upload#Uploading_Binary_Files > > Is this by design. > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Ihe O. <ihe...@gm...> - 2012-12-15 05:38:49
|
---------- Forwarded message ---------- From: Ihe Onwuka <ihe...@gm...> Date: Sat, Dec 15, 2012 at 5:38 AM Subject: Re: [Xsltforms-support] Upload - mediatype and filename not supported To: Alain Couthures <ala...@ag...> I also noticed that setting the readonly attribute of an upload control to true changes it's appearance but doesn't stop you from changing it'z value. On Fri, Dec 14, 2012 at 8:00 PM, Alain Couthures <ala...@ag...> wrote: > filename is now supported in the latest builds. > > -Alain > > Le 14/12/2012 16:06, Ihe Onwuka a écrit : >> >> I unsuccessfully tried to use the mediatype and filename children >> elements of xf:upload and got a message saying they were not >> supported. >> >> Said message was confirmed when I tried the example in the discussion >> section here. >> >> http://en.wikibooks.org/wiki/XForms/Upload#Uploading_Binary_Files >> >> Is this by design. >> >> >> ------------------------------------------------------------------------------ >> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial >> Remotely access PCs and mobile devices and provide instant support >> Improve your efficiency, and focus on delivering more value-add services >> Discover what IT Professionals Know. Rescue delivers >> http://p.sf.net/sfu/logmein_12329d2d >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > |
From: Dan M. <dan...@gm...> - 2012-12-15 15:12:14
|
Hi Alain, Do you have a small XForms sample that has an upload control in it? If you do I will add it to the eXist XSLTForms samples with a backend "catcher" script. - Dan On Fri, Dec 14, 2012 at 2:00 PM, Alain Couthures < ala...@ag...> wrote: > filename is now supported in the latest builds. > > -Alain > > Le 14/12/2012 16:06, Ihe Onwuka a écrit : > > I unsuccessfully tried to use the mediatype and filename children > > elements of xf:upload and got a message saying they were not > > supported. > > > > Said message was confirmed when I tried the example in the discussion > > section here. > > > > http://en.wikibooks.org/wiki/XForms/Upload#Uploading_Binary_Files > > > > Is this by design. > > > > > ------------------------------------------------------------------------------ > > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > > Remotely access PCs and mobile devices and provide instant support > > Improve your efficiency, and focus on delivering more value-add services > > Discover what IT Professionals Know. Rescue delivers > > http://p.sf.net/sfu/logmein_12329d2d > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552 |
From: Alain C. <ala...@ag...> - 2012-12-16 20:32:22
|
Hi Dan, Here is my test case: <html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/1999/xhtml" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <title>Uploads and types</title> <xforms:model> <xforms:instance xmlns=""> <data> <filename1/> <attachment1 xsi:type="xsd:anyURI"/> <filename2/> <attachment2 xsi:type="xsd:hexBinary"/> <filename3/> <attachment3 xsi:type="xsd:base64Binary"/> </data> </xforms:instance> </xforms:model> </head> <body> <h1>Uploads and types</h1> <p> <xforms:upload ref="attachment1" incremental="true"> <xforms:label>Upload for anyURI: </xforms:label> <xforms:filename ref="../filename1"/> </xforms:upload> <br/> <xforms:output value="filename1"> <xforms:label>Filename: </xforms:label> </xforms:output> <br/> <xforms:output value="attachment1"> <xforms:label>Value: </xforms:label> </xforms:output> </p> <p> <xforms:upload ref="attachment2" incremental="true"> <xforms:label>Upload for hexBinary: </xforms:label> <xforms:filename ref="../filename2"/> </xforms:upload> <br/> <xforms:output value="filename2"> <xforms:label>Filename: </xforms:label> </xforms:output> <br/> <xforms:output value="attachment2"> <xforms:label>Value: </xforms:label> </xforms:output> </p> <p> <xforms:upload ref="attachment3" incremental="true"> <xforms:label>Upload for base64Binary: </xforms:label> <xforms:filename ref="../filename3"/> </xforms:upload> <br/> <xforms:output value="filename3"> <xforms:label>Filename: </xforms:label> </xforms:output> <br/> <xforms:output value="attachment3"> <xforms:label>Value: </xforms:label> </xforms:output> </p> </body> </html> Thanks! -Alain Le 15/12/2012 16:12, Dan McCreary a écrit : > Hi Alain, > > Do you have a small XForms sample that has an upload control in it? > If you do I will add it to the eXist XSLTForms samples with a backend > "catcher" script. > > - Dan > > -- > Dan McCreary > NoSQL Evangelist > office: (952) 931-9198 > cell: (612) 986-1552 |