This topic is locked

Upload File Name

11/17/2009 11:17:06 PM
ASPRunnerPro General questions
J
johnmo author

File upload works OK

However when attempting to upload a second file for another record with the same filename we get an error.
How easy is it to change so the file name will be "altered on the fly" during upload to a unique filename as it is likely different users will use the same filename when uploading?

C
clig 11/18/2009



File upload works OK

However when attempting to upload a second file for another record with the same filename we get an error.
How easy is it to change so the file name will be "altered on the fly" during upload to a unique filename as it is likely different users will use the same filename when uploading?


enable append date to filename in upload field options
or add upload field then upload to that field in the db rather then the file system

Sergey Kornilov admin 11/18/2009

Using 'Add timestamp to filename' is an obvious choice.
There are also more advanced approaches that involve writing code:

http://www.xlinesoft.com/asprunnerpro/docs/rename_uploaded_files.htm