0
remove spaces from file upload
Explorer
,
/t5/coldfusion-discussions/remove-spaces-from-file-upload/td-p/574409
Jun 27, 2006
Jun 27, 2006
Copy link to clipboard
Copied
Is there a way to remove the spaces from a filename when it
is uploaded? e.g. when I browse to a file called "My CV.doc" it
removes the space between My and CV and then uploads it?
Cheers
Cheers
TOPICS
Getting started
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/coldfusion-discussions/remove-spaces-from-file-upload/m-p/574410#M52875
Jun 27, 2006
Jun 27, 2006
Copy link to clipboard
Copied
specify the target filename and use ReplaceNoCase to remove
spaces
i.e.
i.e.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
csber3
AUTHOR
Explorer
,
/t5/coldfusion-discussions/remove-spaces-from-file-upload/m-p/574411#M52876
Jun 28, 2006
Jun 28, 2006
Copy link to clipboard
Copied
i.e.?
was there an example there?
was there an example there?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/coldfusion-discussions/remove-spaces-from-file-upload/m-p/574412#M52877
Jun 28, 2006
Jun 28, 2006
Copy link to clipboard
Copied
Once you have uploaded the file you can then use cffile to
rename it!
You take the current file name and use replace() on it!
You take the current file name and use replace() on it!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/remove-spaces-from-file-upload/m-p/574413#M52878
Jun 28, 2006
Jun 28, 2006
Copy link to clipboard
Copied
csber3 wrote:
> Is there a way to remove the spaces from a filename when it is uploaded? e.g. when I browse to a file called "My CV.doc" it removes the space between My and CV and then uploads it?
>
> Cheers
NO, you have to do it the other way around. You upload the file, then
rename it with the <cffile action="rename" ...> tag after your <cffile
action="upload" ...> tag.
> Is there a way to remove the spaces from a filename when it is uploaded? e.g. when I browse to a file called "My CV.doc" it removes the space between My and CV and then uploads it?
>
> Cheers
NO, you have to do it the other way around. You upload the file, then
rename it with the <cffile action="rename" ...> tag after your <cffile
action="upload" ...> tag.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
csber3
AUTHOR
Explorer
,
LATEST
/t5/coldfusion-discussions/remove-spaces-from-file-upload/m-p/574414#M52879
Jun 28, 2006
Jun 28, 2006
Copy link to clipboard
Copied
Thanks for the help everyone.
i figured out how to do it but when i put it on our clients server there is an issue using the Duplicate command. I think its because the clients server is using Coldfusion 4.5. Is there an alternative to the Duplicate command?
i figured out how to do it but when i put it on our clients server there is an issue using the Duplicate command. I think its because the clients server is using Coldfusion 4.5. Is there an alternative to the Duplicate command?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

