I am completely perplexed, as I cannot ascertain a reason as to why this is not working. The code listed below works just fine when I use uploadify's default script:
$('#file_upload').uploadify({
'uploader' : '<?= base_url();?>js/uploadify/uploadify.swf',
'script' : '<?= base_url();?>js/uploadify/uploadify.php',
'cancelImg' : '<?= base_url();?>js/uploadify/cancel.png',
'queueID' : 'upload_queue',
'folder' : '/ths/images/buildings/',//be sure to check this value on the production site to make sure it's relative to the site root
'auto' : false,
'sizeLimit' : 1024000,
'multi' : true,
'removeCompleted': true,
'fileExt' : '*.jpg;*.gif;*.png;*.jpeg;',
'fileDesc' : 'Web Image Files (.JPG, .GIF, .PNG, .JPEG)',
'onAllComplete' : function(event, data) {
/*Code to update the page with results*/
}
});
However, as soon as I change the script to be something like
'script' : '<?= base_url();?>image/upload'
I get an error response back that says 'HTTP 302 error', even if all I do is copy the contents of the default Uploadify script to the controller method.
NOTE: I am using CodeIgniter, with mod_rewrite turned on in the .htaccess file to remove 'index.php' from the URL's. I am also using the database to manage the session. I don't know if any of this information will be useful, but I thought I'd include since these seem to have been important factors in other people's questions.