XForms pre validate upload

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

XForms pre validate upload

Josh Joy
Hi All,

I'm collecting user data, could be 1 to n
rows.....each row has an input
box that the user can specify either a directory or
file. I would first
like to collect this data, then show it to the user,
then upload the
data they specified. Is there a way I can validate
that the specified
file / dir exists before I ask XForms to upload the
actual data to the
server?

Thanks,
Josh



--
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: XForms pre validate upload

Alessandro  Vernet
Administrator
Josh,

You would be using the file upload control: <xforms:upload>. The
control would make sure that you can only select file that exist on
your machine. This means that won't need to do anything to get the
behavior you expect.

Alex

On 3/25/06, Josh Joy <[hidden email]> wrote:

> Hi All,
>
> I'm collecting user data, could be 1 to n
> rows.....each row has an input
> box that the user can specify either a directory or
> file. I would first
> like to collect this data, then show it to the user,
> then upload the
> data they specified. Is there a way I can validate
> that the specified
> file / dir exists before I ask XForms to upload the
> actual data to the
> server?
>
> Thanks,
> Josh
>
>
>
>
> --
> 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
>
>
>

--
Blog (XML, Web apps, Open Source):
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet