Im planning to add file manager (very basic once) because I never used FTP functions, and it looks easier (FTP connection loses when scripts is done). I would simply use POST request (or what should I?) instead of FTP functions. Is it good idea? Anyone knows restrictions?
Share
As far as I can see only FTP functions are to post and receive files.
What you need to do is add dynamic form where you can select multiple files and upload them to specific directory of your chose.
You will need to get all available directories and files in them, probably with some kind of recursive function. More optimal way is to get directories/files of current folder and when you click on folder it will get files/folder for it.
Can it be done – sure. Is it a good idea – no. People will have access for uploading malicious files, we are not talking about images here, php scripts, shell scripts, executable viruses and so on…
If you are doing this only for yourself, for file posting and receiving I suggest you to use FTP clients for that.