• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

list directory as links for client download of files

 
Randall Twede
Ranch Hand
Posts: 4439
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im not sure if this is best forum for this question but im wondering how to make the files in one of my folders available to my servers visitors. I could use a servlet but im thinking there might be an easier way?
since the file extension is one that wont get displayed clicking a link will open a file download dialog
I have Apache/tomcat/php server
I have seen directories displayed as links at other sites.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In apache, if you simply want to make all files in a directory accessible, set up a virtual directory in httpd.conf and point it at the real directory. You can also determine what files actually get displayed, what icons are used in a web directory page, etc. Check the apache docs. Java never gets involved.
 
Randall Twede
Ranch Hand
Posts: 4439
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tim,
I suspected I could do something like that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic