I had worked out how to do this a couple of years ago, but have since lost that code, so am starting over again. What I want to do is keep uploaded files separate for each user. Uploaded images can be kept separate 2 ways:
- by uploading to individual folders for each user
- by adding the user's ID as a prefix to the file name
But so far I have had no success. I can't find where the uploaded file can be renamed, for example changing file.jpg to 1000_file.jpg
I also tried to add the user's ID to the folder name for example in config.asp I changed...
ConfigUserFilesPath = "/attachments/"
to...
ConfigUserFilesPath = "/attachments/" & strUserID & "/"
But config.asp won't cope with a variable loaded on the fly.
My preference is to use folder option but either solution will work. Any ideas?
- by uploading to individual folders for each user
- by adding the user's ID as a prefix to the file name
But so far I have had no success. I can't find where the uploaded file can be renamed, for example changing file.jpg to 1000_file.jpg
I also tried to add the user's ID to the folder name for example in config.asp I changed...
ConfigUserFilesPath = "/attachments/"
to...
ConfigUserFilesPath = "/attachments/" & strUserID & "/"
But config.asp won't cope with a variable loaded on the fly.
My preference is to use folder option but either solution will work. Any ideas?