Download file to FTP and make it available for download automatically

1

Good afternoon!

I'm developing a website, and I have some questions. This site will have a page for downloading some files.

I would like to do the following:

When transferring a file to the download folder on FTP, this file would have to automatically appear on my download page for users to download.

Does anyone have any idea how I can do this?

Thank you!

    
asked by anonymous 13.08.2015 / 20:08

1 answer

0

If you are using PHP one of the possible solutions for solving this problem is to create a folder where you will host all the files to download and put them in the folder via FTP.

After this you will just need to create a script that goes to the folder and reads all the files in that folder and creates links to them as they are added to the folder.

Finally, you just have to generate the interface that makes the list of documents and their download links available.

    
13.08.2015 / 20:17