Monday, April 14, 2008

ColdFusion Auction Software?

Was talking recently with fellow developers and discussing that ColdFusion is desperately in need of more open source projects. I am particularly interested in auction sites. I found PhpAuction (www.phpauction.net) which looks like it will fit the bill and then some, but I cant help but wish their was a ColdFusion equivalent, but I suppose this finally gives me reason enough to dig deeper into php development, which I am getting excited about..since this technology definitely has its fare share of open source projects!

However, haven't given up hope yet, if anyone knows of a ColdFusion based Auction software, please shoot me an email. Thank You Or, if the phpauction people would be interested in starting a port of there software into other technologies, that could be interesting as well.

Friday, April 11, 2008

CFHEADER, IE and Firefox Differences with Blank Spaces in Filenames

I came across an issue with differences in the way firefox and ie7 handle cfheader attachments when wanting to download a file using ColdFusion. The problem is firefox will cut off the downloaded file at the first space in the filename. And, IE7 and above will replace spaces with underscores. To alleviate the problem, you must do the following:

cfif CGI.HTTP_USER_AGENT contains("MSIE")
cfset variables.theFilename = URLEncodedFormat(#filename#)
cfelse
cfset variables.theFilename =
#filename#
cfif

CFHEADER NAME="Content-Disposition" VALUE="Filename=""
#filename#""">

Take note of the urlEncodedFormat which runs if you are using IE. IE will know to replace %20 with spaces in the filename upon download, and the double "" around the variable in the cfheader tag will let Firefox use the entire filename upon saving.