Results 1 to 8 of 8
Apr 22, 2009, 06:22 #1
- Join Date
- Apr 2009
- 0 Post(s)
- 0 Thread(s)
Sorting incoming files through PHP and FTP
I'm working on developing a web app that will let a recording artist share and send recorded sound files with his clients.
Ideally I'd have the artist's clients upload their large files via FTP to the server (files are around 1GB--web browser uploader wouldn't work). The artist would then record his part, upload it to the server, and his clients could log in to the site and download it via HTTP or FTP.
My question is what would be the best way to manage the incoming and outgoing files? I have two possible ideas:
1. Set up a PHP or bash script that is triggered whenever a new file comes into the uploads folder and make the clients name their files a certain way so that they get sorted (e.g. client01-recording.zip would get moved to client1/ so the artist could get it (and so the uploads folder would stay clean and anonymous)
2. Somehow wrangle the server to allow different FTP users and sort based on that (e.g. firstname.lastname@example.org would put the file in client1/)
What would be the best (and most secure) way to manage something like this?