Re: Re: Upload Images in Seperate Deployment
Posted by
Philip.Cantin on
Nov 10, 2009; 3:48pm
URL: https://discuss.orbeon.com/Upload-Images-in-Seperate-Deployment-tp584617p585435.html
Phani,
Phani S wrote
First, What ever resource I use in resource attribute of xforms:submission the file is
storing in temp directory(I dont understand why?).
If my hunch is correct, the location of where your files are stored is dependent on the path specified by the file serializer's config/url element in your XPL. Is there a file serializer in your XPL? Would you mind posting this code as well?
Phani S wrote
Second, in my page I have
two fields. One is date, it is required field and second is upload control.
Only when I select a date it is allowing me to upload(did I do wrong in
binding?).
After looking at your XHTML file, I do see that:
<xforms:bind nodeset="/file" type="xs:anyURI"/>
should be
<xforms:bind nodeset="/image/file" type="xs:anyURI"/>
since <image> is the root element in your 'file-instance' instance.
However, the Upload trigger still performs an action (I changed the <xforms:send> statement to an <xforms:setvalue> statement) even when I leave the date field blank. I'd need to see your XPL to help you further with this.
Phani S wrote
Third I want restrict the files to images only. I specified it in
mediatype of xforms:upload control. But not working.
This thread may help:
http://n4.nabble.com/XForm-Upload-td42763.html#a42763---Philip