Question about FileContent module | rosnerd | 2007-07-27 13:12 |
Status: Closed | ||
Pardon my cross posting but I just realized this question might be better asked on the developer's list. I'm trying to use the filecontent module in 2.1 based on instructions described in previous post by Mark Igra on 6/26/07 included below. I've tried these instructions on my 2.1 installation with no success. Before I dig any deeper, can you confirm that filecontent module was included in the 2.1-6772 build. I checked the ~/modules directory and was expecting to see something like filecontent. However I wasn't able to find anything like that. Thank you. Dan +++ Begin Mark's original message +++ The somewhat experimental FileContent module may be what you want. This allows you to set up a file system directory tree on disk that parallels the folder hierarchy you've defined in your project. The server will return files from your file system given the correct URLs. To configure the root directory for the home project go to: http://localhost:8080/labkey/FileContent/home/begin.view For any other project, substitute the project name for "home" in the above URL. And of course substitute your proper server, port & context path. This page should give you a set of hints on how to use the module. If you place test.html in the root of your file tree you will be able to retrieve it using http://localhost:8080/labkey/FileContent/home/sendFile.view?fileName=test.html The accompanying files servlet is configured to return the files using standard URL, so instead of using sendFile.view?fileName=test.html http://localhost:8080/labkey/files/home/test.html would work. This allows you to have URLs that look like they come from a standard web app, but have LabKey's per-folder security enforced. +++ End Mark's original message +++ |
||