|
Posted by Andy Dingley on 05/19/06 19:24
Eric wrote:
> Is it possible to check for existence of a file from a web page using
> javascript?
No, it's impossible. It's forbidden by the sheer impossibiility of
accessing the server's filesystem from a remote web client, and by the
sandboxing that would obviously applied if such a feature were even
remotely feasible.
As to the client, then you're again sandboxed from looking around the
client's filesystem (and for good reason). There's a tiny amount that's
possible through manual file upload on a form, but that's hardly
directory listing.
If your client permits a client-side technology like ActiveX, then the
sky's the limit. This is completely insecure, potentially permits
anything (down to machine level access of the HD) if there's a suitable
ActiveX component written in C++ or similar and uploaded with the page.
Navigation:
[Reply to this message]
|