views:

23

answers:

1

Hi,

Is it possible to use Javascript to invoke a FTP call to a specified URL and retrieve all files in this webdirectory?

...

+1  A: 

Assuming you are talking about javascript in the browser, then this is not possible without some supporting server side code.

You can use javascript to make an ajax call to a server - the server can invoke FTP and retrieve a file list (or even the files) to the server. These can then be downloaded from the server.

Oded
Ok understood - I have to think of something else.