Rank: Newbie Groups: Member
Joined: 8/22/2012 Posts: 1
|
I have a site where users will log in and upload files, then come back later and upload more. I would like to be able to display any existing files found in the FinalFileLocation so the user can see what they have already uploaded.
Also, is there a way to prevent the user form uploading a file that already exists?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
You will need to write additional code to do that and the list will NOT be part of the AJAXUploader. If the uploader were to do that part, then it would need a separate FinalFileLocation for each user, that is usually not practical. So you have to maintain the file list somehow out of the file system (for example, putting all uploaded files in one folder but keeps record in your database about which files belongs to which user).
You can not prevent a user from uploading a file that already exists because there is no way to define "a file that already exists". User can upload two totally different files with the same file name. That should always be allowed.
Thanks!
|