g118481
asked on
How can I use CFFILE and make my upload unique?
I am familiar with the MakeUnique function within CFFILE, however, I would like to set the format of the renaming of the "like" files, instead of CF doing it.
An example of what I want to do when the file exist:
From this: test_testing_v1.doc
To: test_testing_v2.doc
As you see, I wish to change just the last number before the ".doc" to increment to the next number.
How would you suggest I do this?
An example of what I want to do when the file exist:
From this: test_testing_v1.doc
To: test_testing_v2.doc
As you see, I wish to change just the last number before the ".doc" to increment to the next number.
How would you suggest I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yeah you are right, you can always cheque for MakeUnique and if it exists rename files and keep uploading blah blah ...
ASKER
I'm trying to do this in order to get better control over the naming convention my group uses when uploading documents to our repository.
Is there not a way I can check for the existence of the file name, and if it does, rename it using the format I mentioned above?
I like the attribute of "MakeUnique", however, I know my group will complain that the unique name is nothing like the filename they uploaded.