Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: check if a file is OPEN status before uploading

AQureshi

2007-01-26

Replies:

Dave Newton <newton.dave@(protected):

> --- Vinod Kumar <vkmatri@(protected):
> > [...] before uploading, I want to make sure that
> file
> > is not in open state.
>
> I know of no way you can do this, although there may
> be some Javascript treachery. Your code is not being
> executed on the client; it does not have access to
> file system statii.
>

Even Javascript cannot read files on your hard-disk. Use an applet perhaps
(if you are too paranoid)?

©2008 junlu.com - Jax Systems, LLC, U.S.A.