This topic is locked

Display files and catalogs

5/22/2012 8:42:08 AM
ASPRunnerPro General questions
F
Frank Erik author

I'm trying to develop a application where users can search and download documents from the web server.

Documents is operating manuals for engines and gears.

The files are located on the web server, i.e. WEB-ROOT/operating manuals/english/4-stroke/RG142.PDF
Looking for functionallity like the Windows explorer.
Search for file- and catalog- names

Maneuver through an directory structure (Three view)
Any hints?

Store files in the database?

Any ASP functions?
OBS! The filearchive is not static.

Sergey Kornilov admin 5/22/2012

The best option is to store file hierarchy and file names in the database. This way you can quickly search for a certain file. Files itself can be stored in some folder on the web server, there is no need to move them to the database.

F
Frank Erik author 5/22/2012



The best option is to store file hierarchy and file names in the database. This way you can quickly search for a certain file. Files itself can be stored in some folder on the web server, there is no need to move them to the database.


OK!

It gives me the search function, but only by filename?

Do you mean manually databaseinput of filename and extention?

What about directory search and drilldown?
Found a way to echo dir-list to a text file and then import the file names to a database field.

This gives me oportunity to crate an automatic update in case of new files.

Tough, this only solve the filesearch.
What about "tables/fields" to handle mother/child views for drilldown the directory structure?

Sergey Kornilov admin 5/22/2012

You need to store folders hierarchy in the database as well.
Another option - you can find ready made script that will handle this job for you. See some examples at http://www.codango.com/asp/dir/webapps/fileoper/