Posts

Showing posts from August, 2021

ColdFusion Interview questions 2021 - Part 1

Image
  1. What is ColdFusion. How it works? ColdFusion is a powerful and fast development platform built on java for web application development. For more detailed explanation,  you can refer the video below: 2. Difference between Application.cfc and Applicaion.cfm Every time a page runs, ColdFusion looks for the Application.cfm page  in the current directory and then in each parent directory up to the web root until it finds one. As soon as it finds an Application.cfm page, it runs it and stops looking. ColdFusion looks for the Application.cfc, page in the same manner as it does for Application.cfm. Below video shows the main difference between Application.cfm and Application.cfc   3. What are components in ColdFusion? Components are nothing but a class with methods / functions and variables in it. In ColdFusion the tag <cfcomponent> is used for creating components. The functions inside a component can be created by using <cffunction> tag. The syntax for creating a component

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