Gregory's Blog

ColdFusion related posts

Uploading Files With ColdFusion

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.
Read More...
Tags vs Cfscript in ColdFusion and Lucee

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.
Read More...
Recursive ColdFusion Function

Recursive ColdFusion Function

Gregory Alexander, Tech

We will discuss how to develop a recursive ColdFusion function                                      
Read More...
Extending Application.cfc's using mappings and proxies

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.
Read More...
Using a dynamic variable to set a dynamic path variable when dropping a cookie

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.                                      
Read More...
ColdFusion error: The current user is not authorized to invoke this method.

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.
Read More...
ColdFusion arrays can't use zero as an index.

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.                                      
Read More...
Shorthand struct return

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.
Read More...