Re: Re: Re: Upload Images in Seperate Deployment
Posted by
Phani S on
Nov 10, 2009; 5:49pm
URL: https://discuss.orbeon.com/Upload-Images-in-Seperate-Deployment-tp584617p585480.html
Hi Philip,
I don't have any xpl. I wrote a java class to read the temp file and produce the original image. Can you send me the file back to me which you modified. I am also unable to restrict the content to be only images. If possible please do it. Send me the file back.
Thanks
On Tue, Nov 10, 2009 at 9:18 PM, Philip.Cantin
<[hidden email]> wrote:
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
--
View this message in context: http://n4.nabble.com/Upload-Images-in-Seperate-Deployment-tp584617p585435.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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
--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9010093398
--
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