Posts

Showing posts with the label cfheader

Coldfusion : How to fix multiple content disposition error when cfheader is used

Image
  There are some cases where we will get the below error while using files downloads or using cfheader attachment attributes. This occurs when there will be be a comma in the file name which will make the server give error like multiple content. To fix this error, a simple code update can help: we can add the filename in double quotes so that the code will look like: <cfheader name="Content-Disposition" value="attachment; filename=""#myfilename#""">