$(document).ready(function() {
    $('#fileInput').uploadify({
        'uploader'  : '/_p/js/uploadify/uploadify.swf',
        'script'    : '/_p/js/uploadify/uploadify.php',
		
        //'script'    : 'http://mototop/uploader/upload/__tkn/<?php echo Zend_Session::getId(); ?>',
        //'script' : "<?php echo $this->url(array('controller' => 'uploader', 'action' => 'upload')) ?>",
		
        'fileExt': '*.jpg;*.png',
        'fileDesc': 'Feed Files (*.csv;*.txt)',
		
        //'fileDataName' : 'upl_feed_file', // in $_FILES
        //'scriptData': {'PHPSESSID' : '<?php echo Zend_Session::getId(); ?>'}, // This didn't work for me.
		
        'cancelImg' : '/_p/js/uploadify/cancel.png',
        'auto'      : true,
        //    'onCancel' : function (event, queueID, fileObj, data) {
        //            	    alert('Error: You have cancelled the file upload.');
        //            	},
        'multi'     : true,
        'folder'    : '/_p/uploads'
//        'onComplete' : function (event, response, data) {
//            if (response == '' || response == 0 || response == "0") {
//                alert('Error during with the upload');
//            } else {
//                perf_error('Success!');
//            }
//        }
    });
});
