File Management
Posted: Fri Aug 07, 2009 11:22 pm
Let's say I want a file manager with the following features:
Upload, tag, sort, search by name or tag, and download from a link.
Basically, I want to get my files information in a DB so that I can do stuff with it. One easy way to do this is to rename every file to its MD5, and then manage the rest of the info by DB. These make messy links. Then, I am thinking of using a file proxy... some "file.php" script that would instead be the file to download, it would take an argument, and deliver the requested file. This seems nice and neat, allows me to track files by their hash, and you can alias files to make simple links. Is this a bad idea, or is it particularly difficult to make a file proxy script? Is there another way to track the files as they are uploaded? I don't like the idea of just using names, because when you rename the file, you also have to update the DB. Is this just.... how is HAS to be done?
Oh well, I'm getting tired! Any ideas and feedback are appreciated.
Upload, tag, sort, search by name or tag, and download from a link.
Basically, I want to get my files information in a DB so that I can do stuff with it. One easy way to do this is to rename every file to its MD5, and then manage the rest of the info by DB. These make messy links. Then, I am thinking of using a file proxy... some "file.php" script that would instead be the file to download, it would take an argument, and deliver the requested file. This seems nice and neat, allows me to track files by their hash, and you can alias files to make simple links. Is this a bad idea, or is it particularly difficult to make a file proxy script? Is there another way to track the files as they are uploaded? I don't like the idea of just using names, because when you rename the file, you also have to update the DB. Is this just.... how is HAS to be done?
Oh well, I'm getting tired! Any ideas and feedback are appreciated.