Welcome Guest Search | Active Topics | Sign In | Register

AjaxUploader - display existing files in the upload folder Options
jarrod
Posted: Wednesday, August 22, 2012 12:18:31 AM
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?
eo_support
Posted: Wednesday, August 22, 2012 10:43:25 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.