Is the file is in stored in database or is it stored in the FileSystem. If it is stored in the database you can use audit coulums and join the logged in user id to get the list of files to be displayed.
If you dont have that in database. On each upload you have to assign the file to the user in the database, or XML file. whenever the user want to download the system will refer the XML of the DB to provide a list of files to be downloaded.
Never Never Never Give Up...!!!
Joined: Aug 27, 2008
My files are uploaded to the server not to the database. Sorry, Am not able to get you properly, am a new developer and this is my first web application . Can you explain it a bit eloborated ?
In the uploading function itself, I have to store the username also?
What vijay is suggesting is that you store in the database the username and the location of that file on the filesystem (the path on file system and not the actual file's content). When the user requests for the files, you need to query the database for that user requesting and get the files he has uploaded till date. But this apprach will work only if the hosting server gives your web application permission to write to file system.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: List of downloaded files has to appear based on the User