Link to home
Start Free TrialLog in
Avatar of DataCollab
DataCollab

asked on

Problem with cfmailparam and blanks in file name

Using cfmailparam to send a file attachment, it works fine if the file name has spaces in it.  It doesn't send the email if the file name does have spaces in it.   I'm using the following code:

<cfif len(#document#) GT 0><cfmailparam file="#documentURL##URLEncodedFormat(document)#"></cfif>
Avatar of _agx_
_agx_
Flag of United States of America image

First, did you try it without the URLEncodedFormat() function to see if it works? URLEncodedFormat is usually used for URL's only.
Avatar of DataCollab
DataCollab

ASKER

Yes, I did.
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Try #Expanpath('')#

Typo correction.  I think they meant ExpandPath().  

Using the physical file path works, thanks all!!!