Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Code Igniter and Uploadify
  • Hey,
    I did some searching on this topic and found some post but nothing reflecting the issue i am seeing.

    I'm using v2.1.0 and i'm trying to post to a "pretty url" script: file/upload and it seems the files aren't posting, But i can dump out $_REQUEST and i see data.

    I'm kinda confused as to whats going on. Because i can pull the uploadify.php file and everything works, Just posting to a controler within CI is failing.

    Any Thoughts or suggestions? Here is my uploadify js snippet.

    $(\"#fileInput\").uploadify({
    'uploader': 'resources/3rdparty/uploadify.swf',
    'cancelImg': 'resources/images/cancel.png',
    'script': '<?=$this->config->site_url();?>file/upload',
    'folder': 'userfiles',
    'queueID': 'fileQueue',
    'multi': true,
    'wmode': 'transparent',
    'displayData': 'speed',
    'buttonImg': 'resources/images/browseBtn.png',
    //'checkScript': 'resources/3rdparty/check.php',
    'checkScript': '<?=$this->config->site_url();?>file/upload',
    'width': 80,
    'height': 24,
    'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
    'rollover': true,
    onError: function (a, b, c, d) {
    if (d.status == 404)
    alert('Could not find upload script. Use a path relative to: '+'<?= getcwd() ?>');
    else if (d.type === \"HTTP\")
    alert('error '+d.type+\": \"+d.status);
    else if (d.type ===\"File Size\")
    alert(c.name+' '+d.type+' Limit: '+Math.round(d.sizeLimit/1024)+'KB');
    else
    alert('error '+d.type+\": \"+d.text);
    },
    onComplete: function (evt, queueID, fileObj, response, data) {
    run_filetree();
    $(\".status_upload .header\").html(\"Upload Complete!\");
    count = count+1;
    $(\".status_upload .status\").html(\"Successfully uploaded: <b>\"+count+\"</b>\");
    files = $(\".fileList\").html();

    msg = files+fileObj.name+\"<br/>\";
    $(\".fileList\").html(\"\"+msg);
    $(\".status_upload\").show();
    }
    });
  • Bump: Has anyone have input on what could be causing this? I've found post on CI forums but they are referring to an older version