Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File management system

Status
Not open for further replies.

madcgimonk

Programmer
Oct 8, 2004
25
US
I am building my own file management system with the ideas below:

Code:
File Management System
-----------------------
Admin file upload manager
> Allow any files to be uploaded
> Upload form has pulldown of registered users (pulldown associated with a database)
>> One file can be uploaded at a time and will be uploaded to the user's folder as chosen above ^

Member file manager
> Login which redirects to specific folder (cookie authentication)
> They are brought to another script which scans all files in their directory and:
>> Puts them all into a hash/array by given file type
>> Records the file name, the date it was uploaded and file size
>> The script prints these out on the screen in order by given file type and date (newest date on top).  These will be links to the particular file so they can download any file they want.

Example:
It would print all images on top, then say zip files, then text, etc.  Each category would be setup in chronological order.

Now, I can do almost all of this with scripts I already wrote. I have a file upload script I've written along with many login scripts.

The question I have is, how do I do the file reading do it slurps up all file names and file data in their folder?

Thanks.
 
this looks like a job for perlscript being installed on the local machine, or some other client application to send you a list of all the files in a partic directory, so you can open and read them up to the server.

You shouldn't be able to read a clients disk from the web environment, as it falls outside the w3c standards, partic. privacy issues

--Paul

It's important in life to always strike a happy medium, so if you see someone with a crystal ball, and a smile on their face ... smack the fecker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top