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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document sharing on intranet

Status
Not open for further replies.

zonash001

Programmer
Mar 10, 2004
15
PK
hi all.....
i m here with some intranet related issues. The issue is tht one of the key benefits of intranet is document sharing.....i.e. depts post their files (.doc, .xls, .pdf etc) on the intranet tht can be viewed by other departments.

My question is how this can be accomplished? One way would be to have a page (dedicated for each dept) with links to files. In this case, a link has to be added MANUALLY everytime when a new file is placed/deleted on the
intranet. This works fine for limited no. of files but wht if there is a bunch of files tht is posted/deleted daily from intranet. Is there any other way to do so?

Secondly, how can i restrict access to these files...i mean there would b some files which can be viewed by all...whereas others need to be restricted for different groups of people in diff depts. As an example consider tht there is a file named file1.xls. This file can be viewed by Mr. Abc of Finance dept, Mr. Pqr and Mr. Xyz of Marketing. Likewise, there is another file named file2.doc. File2.doc can be viewed by Mr. Abc of Finance dept and Mr. Pqr of Marketing and Mr. Mno of Customer Services, so on and so forth.

Hope u got the idea. Any suggestions now?????

 
I use some code on the JSP to check a directory contents, and then display the files that are present (so you effectively create a dynamically updating page of files without the need to edit manually every time).

I don't allow people to upload files without going through a "File Upload" page. They select their file, type in a comment, choose the location (directory) it is to go into, and then press the upload button.

An entry is made in a mySQL database containing the file name and the comments (as well as when it was uploaded, who uploaded it etc). This information is used to display a comment beside each file when creating the page.

Finally, I implemented a simple security solution based off the NT login name (using LDAP in the Active Directory on our local NT network). This allows me (as the admin) to restrict access to directories on a user by user basis. I don't restrict access to specific files however.

So that's the way that I do it using Tomcat/mySQL.

It would be much the same using asp or php. Many of the components are already out there and built waiting for you to copy-paste.

Let us know what server setup you have and what (if any) database connectivity you have at your disposal. From there I am sure that a more specific solution can be discussed.

Cheers,
Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top