|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
removing blank spaces
Hi everyone,
I have an application in which I enable users to search for graphics, then, when they find what they need, they can right-click on an image to save it on their hard drive. Unfortunately, when the admin uploaded the graphics to the server (using a Cold Fusion-based interface), she used blank spaces in the file name for many of the graphics. So, when users right-click to save the file, they get something like business%20people%2010... Is there any code I could use to remove the blank spaces when a graphic is saved (the file names are included in an Access database and the images are currently saved on a server in a graphics folder). I am thinking that there may be a better solution than having to go and re-name graphics and re-do the entries in the database... Thanks, R |
|
#2
|
|||
|
|||
|
not sure if this would work but I'd try a find a replace " " function or something similar to that.
|
|
#3
|
|||
|
|||
|
Sure, look at the replace() function. And you can easily do this to the images you already have saved by reading in the folder contents with cffile and then looping over them, renaming any that have spaces to names with no spaces.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > removing blank spaces |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|