Attachment in Orbeon

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Attachment in Orbeon

joyce.wang
Hi,
I need to be able to attach files in a XForms. For example, I have button "Attach a  File" in my XForms; if I click on the button, then I am able to select any file from the local disk and insert the full path for this file in the XForms; if I click on the full path, then the file will be opened in the XForms or a seperate window.
How can I do this? I tried "<xforms:upload>", but can not meet my need. Please help me with this.

Thanks.

Joyce



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Attachment in Orbeon

Hank Ratzesberger
Do you mean that you want to create something like an anchor <a>
that will open the local file, before it is uploaded to the server?

That is a bit of a challenge.  It might work if you can create
an anchor with an href like "file://......"

Do you have an xhtml+xforms example that can run in the xforms
sandbox -- I guess it would be mostly an html example.

--Hank



----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Thursday, May 10, 2007 3:28 PM
Subject: [ops-users] Attachment in Orbeon


> Hi,
> I need to be able to attach files in a XForms. For example, I have button "Attach a  File" in my XForms; if I click on the button,
> then I am able to select any file from the local disk and insert the full path for this file in the XForms; if I click on the full
> path, then the file will be opened in the XForms or a seperate window.
> How can I do this? I tried "<xforms:upload>", but can not meet my need. Please help me with this.
>
> Thanks.
>
> Joyce
>
>

--------------------------------------------------------------------------------


>
> --
> 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
>




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Attachment in Orbeon

joyce.wang
Hi Hank,

Hank Ratzesberger wrote:

> Do you mean that you want to create something like an anchor <a>
> that will open the local file, before it is uploaded to the server?

Yes, that is what I need. So I can use "upload" control to select the
file from local disk, then I can view the file when I click on the file
name or it's path.

>
> That is a bit of a challenge.  It might work if you can create
> an anchor with an href like "file://......"
>
> Do you have an xhtml+xforms example that can run in the xforms
> sandbox -- I guess it would be mostly an html example.

I looked "XForms Sandbox" example already. But this example only works
for XHTML + XForms files. How can I modify it to work for loading any
image and pdf files? That is what I am looking for.
Any suggestions?
Thanks.

Joyce

>
> --Hank
>
>
>
> ----- Original Message ----- From: <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, May 10, 2007 3:28 PM
> Subject: [ops-users] Attachment in Orbeon
>
>
>> Hi,
>> I need to be able to attach files in a XForms. For example, I have
>> button "Attach a  File" in my XForms; if I click on the button, then
>> I am able to select any file from the local disk and insert the full
>> path for this file in the XForms; if I click on the full path, then
>> the file will be opened in the XForms or a seperate window.
>> How can I do this? I tried "<xforms:upload>", but can not meet my
>> need. Please help me with this.
>>
>> Thanks.
>>
>> Joyce
>>
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
>>
>> --
>> 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
>>
>
>
>------------------------------------------------------------------------
>
>
>--
>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
>  
>


--
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

joyce.wang.vcf (217 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Attachment in Orbeon

Alessandro Vernet
Administrator
Hi Joyce,

On 5/11/07, Joyce Wang <[hidden email]> wrote:
> > Do you mean that you want to create something like an anchor <a>
> > that will open the local file, before it is uploaded to the server?
>
> Yes, that is what I need. So I can use "upload" control to select the
> file from local disk, then I can view the file when I click on the file
> name or it's path.

I don't think this is possible given the restrictions we have in
browsers. For instance Firefox does not expose the path to the file to
JavaScript running on the client.

I think what you need to do is to have the file uploaded to the
server, the server storing the file somewhere, and then a link
pointing to the server being generated.

Alex
--
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws