|
Posted by Eric on 05/19/06 20:15
Andy Dingley wrote:
>
> 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.
I'm not trying to do a directory listng, I'm loading a series of images
(with specific filenames) in a loop, and if one is missing i want to break
out of the loop. So is that possible?
Eric
>
> 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.
[Back to original message]
|