Reply to Re: checking for a file

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация