<cfwhat>

Monday, December 05, 2005

cfheader and filenames with spaces


Some time ago I had a project which required file downloads using cfheader. I found that file names with spaces were being truncated by
some browsers. Recently I came across this blog entry by
Charlie Arehart from New Atlanta which provides the solution.



Instead of

<cfheader name="Content-Disposition" value="attachment; filename=a text file.txt">

use

<cfheader name="Content-Disposition" value='attachment; filename="a text file.txt"'>

0 Comments:

Post a Comment

<< Home