Kevin Rutherford wrote: > Thanks Kevin. I just want to know how I can use all these stuff. Let me tell you my problem. I want to view files which has been uploaded to my server.
I want to get a list of hyperlinks showing the list of files which have been uploaded to my server. When I click on these hyperlinks I should get the file contents. Regards, A.P.Das. > Now I am confused... Are you asking me how we built our file manager to > manage files by ID? > > Using a file ID to identify files is just the way that we decided to deal > with files in our application. There is nothing special about the file ID > parameter - we made it up. Nothing in Turbine knows or cares about file IDs. > > We wrote a file manager service that uses a database table to keep track of > files. It contains columns for a file ID, file type, file path, owner user > ID, date created, etc. Our application allows users to upload and download > files, and the file manager service allows us to "check in" new files, and > retrieve existing files for download. It stores the files in a directory > structure that it controls. > > When the Download screen is invoked, it gets the FileID parameter from the > request and calls our file manager service, which checks to see if the the > person requesting the download is allowed to download it (is he the owner, > or in the same "group" as the owner, etc.), opens the file, and returns an > open InputStream for that file. The Download screen code then downloads the > file, as described in earlier emails. > > But the real question that you need to answer is, how do YOU want to > identify files in your application? Whatever you decide, you need to write > the code to implement it. This is an application design decision, not > something that Turbine will do for you. > > Hope this helps. > > Kevin > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
