Modules, Security Interceptor and flash upload!!

I've got a coldbox module, which sits on an intranet. I'm trying to
use uploadify (jQuery upload) to upload a file, but I keep getting a
302 error (presumably to the login page).

I've tried appending cftoken,cfid and jsessionid to the jQUery upload
script, but I'm just getting nowhere....

Has anyone done this, and got any advice?



Activate some logging to see who is doing the 302.

Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager:

Turns out it only happens in Google Chrome. I think there's a
difference with the way the chrome flash plugin works.


Here is how I implemented in. Let me know if you need more info on what
is going on in the code below. It works in all supported uploadify
browsers including Chrome.

Image.cfm view that displays the upload button.

<!--- Multi-image upload button --->
<table cellpadding="3" cellspacing="10">
    <td><div id="uploadify"></div></td>
    <td><b>Select Image(s) to Upload.</b></td>

//Browse button for multi-image upload.
  $(document).ready(function() {
      uploader: '/includes/javascript/uploadify.swf',
      folder: '/tmp',
      cancelImg: '/includes/images/cancel.png',
      multi: true,
      auto: true,
      fileDesc: 'Image files',
      fileExt: '*.jpg;*.jpeg;*.gif;*.png',
          type: 'post',
          data: {,
          success: function(result) {
          error: function(request, error){
            alert('There was an
error uploading one of the images, please try again.');
function(event,queueID,fileObj,errorObj) {
        alert("The file " + + "
failed to upload correctly. Pleaes try this file again.")
      onAllComplete: function(event, data) {
        $('##message').html('Files uploaded
successfully.').fadeIn('slow', function() {
setTimeout('$("##message").fadeOut("slow");', 3000); });



<cfcomponent name="ImageProxy" output="false"
extends="coldbox.system.remote.ColdboxProxy" hint="Image Proxy to tie
our ajax calls to coldbox">

  <!--- moveImage --->
  <cffunction name="moveImage" output="false" access="remote"
returntype="any" hint="I proxy the call to the event to move the
    <cfset var results = "">

    <!--- upload the image to the tmp folder --->
    <cfset var uploaddir = #expandPath('/')#& "/tmp">
    <cfif not directoryExists(uploaddir)>
      <cfset directoryCreate(uploaddir)>
    <cffile action="upload" filefield="form.fileData"
destination="#uploaddir#" nameconflict="overwrite" />

    <cfreturn 1><!--- This is very important. Uploadify
expects a 1 result always --->

  <!--- uploadImage --->
  <cffunction name="uploadImage" output="false" access="remote"
returntype="any" hint="I proxy the call to the event to upload the
    <cfset var results = "">
    <!--- This is an event that handles move the img from
its uploaded temp location to its final location, saves the reference to
the db, or whatever you need it to do --->
    <cfset arguments.event = "imageAdmin.uploadImage">
    <cfset results =

    <cfreturn 1>


Hope this helps.

Curt Gratz
Computer Know How
Coldbox Alliance Partner