ColdFusion related posts
Uploading Files With ColdFusion
Gregory Alexander, Tech
In this article, we will cover how to upload data to the server using ColdFusion. We will also discuss security concerns and common best practices when uploading data using ColdFusion.
Tags vs Cfscript in ColdFusion and Lucee
Gregory Alexander, Tech
ColdFusion supports both a tag-based language, similar to PHP, and cfscript, which is a C-style language similar to Javascript. In this article, we will discuss some of the potential use cases of both styles.
Recursive ColdFusion Function
Gregory Alexander, Tech
We will discuss how to develop a recursive ColdFusion function
Extending Application.cfc's using mappings and proxies
Gregory Alexander, Tech
How to use multiple Application.cfc’s in a ColdFusion application and extend them using mappings and proxies.
Using a dynamic variable to set a dynamic path variable when dropping a cookie
Gregory Alexander, ColdFusion
Using ColdFusion’s cookie scope to set a dynamic path value.
ColdFusion error: The current user is not authorized to invoke this method.
Gregory Alexander, Tech
I wanted to document this as this error is not often found using google, but if you receive a ColdFusion error "The current user is not authorized to invoke this method.", it could be due to using the roles attribute in a cfffunction tag that don't match the roles that you set using the cflogin tag upon successful login.
ColdFusion arrays can't use zero as an index.
Gregory Alexander, Tech
ColdFusion will throw an error when trying to use zero as an array index.
Shorthand struct return
Gregory Alexander, Tech
There are many ways to return multiple values from a cfc. Typically we return a query object, a json string, an array, or a structure, but one of my favorite ways to return multiple bits of data is using a shorthand structure. It is much easier and intuitive to use on both the back and front end than using an array. Here is a simple example.