Solved

URLEncode a link to a file

Posted on 2010-11-08
1
417 Views
Last Modified: 2012-05-10
Hi,
I have a link to a file that is not opening.  I found the URLEncode function might work.  
However, I've tried several different ways and am not sure if it can be used in a link for a file, because in between different variables there are spaces.  I need to know how I can set the URLEncode function, if I'm doing something wrong.
This is what should be included:

<cfloop list="#qGetData.file#"  index="i"   >
                   
<a href="http://server:8001/obi/Path-MA/Attachments_Directory/Marketing/#qGetData.group_Name# ID #url.id# (By #qGetData.submitted_By#) - #DateFormat(qGetData.date_Submitted, 'mmddyyyy')#/#i#")>#i#</a><br/>      
</cfloop>

Variables like group_Name may have spaces, but the path itself does have spaces.  How to go about this?
0
Comment
Question by:armanbena
1 Comment
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 34092735
Did you read the answers on your other thread? You were already given the answer to this question:  URLEncode _only_ the portion of the path with spaces.

http://www.someserver.com/somepath/#URLEncode("portion of the path with spaces)#

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_26591859.html
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
need some regex help 15 29
cfpdfform and populate 14 70
want to maintain checked status on radion button after form submit. 3 69
REGEX HELP 11 40
The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question