I'm using the <cffile> tag to upload files to a server. I'd like to replace some characters if they are used in the file name so that I can use the file name in a URL later on.
My understanding of the Replace function is that it takes a string for the characters you want replaced, and a string for the characters to replace them with, and that it is comma delimitted.
So if upload the file then rename it without the characters that I don't want I think that would work. My problem is removing some special characters like ", ', and comma's
for example if a file was named
my Bad'name",file.doc
how would I create a comma delimitted string to represent the space, the single quote the comma and the double quote?
doing a <CFSET myBadChars =" ,,,',""> obviously isn't going to work.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001
My understanding of the Replace function is that it takes a string for the characters you want replaced, and a string for the characters to replace them with, and that it is comma delimitted.
So if upload the file then rename it without the characters that I don't want I think that would work. My problem is removing some special characters like ", ', and comma's
for example if a file was named
my Bad'name",file.doc
how would I create a comma delimitted string to represent the space, the single quote the comma and the double quote?
doing a <CFSET myBadChars =" ,,,',""> obviously isn't going to work.
"Every day is like a precious gift, you have to make it count" James Birrell 1993-2001