Re: [Vfs-devel] First on the topic list?
Status: Alpha
Brought to you by:
eesa
From: Tony K. <tk...@ca...> - 2000-06-05 20:40:43
|
----- Original Message ----- From: "Abdul-Wahid Paterson" <ee...@we...> To: <vfs...@li...> Sent: Monday, June 05, 2000 9:15 AM Subject: Re: [Vfs-devel] First on the topic list? > Yes, I am aware of this problem and I think I included it on the original > TODO list in the 0.1 distrbution. I agree with your solution as it is > pretty much with what I already had in mind. The disadvantange of the > filesystem way is that you need to have a webserver writeable directory. Well we just need to have the user create a directory (or chmod the VFS app directory) to allow read/write for user nobody (or whatever account they have apache or whatever web server, running as). And how about doing something like this... Save the uploaded file as 'VFS$file_id' When the user goes to download the file copy the stored file over to the original file name or create a sym link to the stored file. What's your ideas? Copy or symbolic link? or does it really matter? > But apart from that it isn't really a problem. Everyfile has a unique file > number "file_id". Maybe we could use that for the filesystem filename so > that it becomes something like VFS$file_id. Is there any advantage of > making the filename random? There was no REAL point to the random file name deal. Just a way to make sure there were no duplicate file names being stored. I like your idea better :) > > I agree with this layout. However, I think we should take a look at the > class.DBI. Although it would involve a lot being rewritten, they may have > done a lot of work for us already. I am waiting for Roland to get back to > us about it. He doesn't seem to have joined the mailing list yet. > > You can find out about class.DBI at > > http://evil.inetarena.com/php/DBI.php3 > I've checked out the class. Looks to be very clean. Also looks like it will get the job done. Regards, Tony Kirk |