You are here: Re: checking for a file « HTML « IT news, forums, messages
Re: checking for a file

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]


Удаленная работа для программистов  •  Как заработать на 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

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