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

 

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#""">

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms