ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 27th, 2005, 12:27 PM
pikemire pikemire is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 pikemire User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 34 sec
Reputation Power: 0
How to upload files with spaces: cffile adds underscores each time

This may be a simple question for the professional but I can't match the file name that is added to my Access database with the file name that is uploaded to the server when I use cffile do upload files that contain spaces between the words.

If the file name has spaces, the coldfusion server adds underscores between the spaces when it saves or uploads the file but when I update my Access database, the file name is preserved and does not contain underscores. This causes errors when the image or file is displayed dynamically.

How do I compensate for the underscores or prevent them from being added.

Thank You!

Paul Ikemire

Reply With Quote
  #2  
Old August 27th, 2005, 01:17 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,692 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 43 m 41 sec
Reputation Power: 53
I would strongly recommend that you don't use file names with spaces on the web in the first place. But as far as I know, there is no way to prevent cffile from adding the underscores. You'd have to try and rename the file yourself after the upload.
Comments on this post
saintaw agrees: I wouldn't recommend using spaces either, can you not rename the files in acces? If you need to
rename in CF: http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p34.htm#wp1098668
__________________
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > How to upload files with spaces: cffile adds underscores each time


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT