Skip to content

Instantly share code, notes, and snippets.

Avatar

Dimitris Siskopoulos dimsis

View GitHub Profile
@dimsis
dimsis / upload.cfc
Created Oct 5, 2012 — forked from jsteenkamp/upload.cfc
ColdFusion 8 code for Plupload file uploading including chunked transfers
View upload.cfc
<!--- coldfusion 8 version --->
<cfcomponent>
<cffunction name="plupload" access="remote" returntype="struct" returnformat="json" output="false">
<cfargument name="name" default="" />
<cfscript>
var uploadDir = expandPath('../assets/');
var uploadFile = uploadDir & arguments.NAME;
var response = {result = arguments.NAME, id = 0};
var result = {};