Welcome Guest, Not a member yet? Register   Sign In
Uploadify + CI / Experience?
#3

[eluser]trice22[/eluser]
Thanks for the swift answer.
Firebug doesn't really give me any good insights—it seems that the script never even starts the upload.
I'm currently wondering the most about how to structure the "script–path", since the documentation at "uploadify" doesn't really tell much about how it is used.

My JS code looks currently something like this:

Code:
$(document).ready(function() {
    $('form#guest-gallery input#image').fileUpload({
        'uploader':'<?php echo base_url(); ?>assets/swf/uploader.swf',
        'script':'/',
        'cancelImg':'<?php echo base_url(); ?>assets/img/layout/cancel.png',
        'folder':'/assets/js/plugins/_uploadify_debug/pics',
        'multi':true,
        'scriptAccess' : 'always',
        'onError' : function (a, b, c, d) {
         if (d.status == 404)
            alert('Could not find upload script. Use a path relative to: '+'<?php echo 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);
        }
    });
});

The upload code in my controller works fine with a conventional upload.

—trice

EDIT: Turns out, I had accidently turned off the auto–upload feature. I'm still getting an error: Could not find upload script. Use a path relative to: [PATH TO MY APP] . No matter if I'm using a relative or absolute path or even just a "/".


Messages In This Thread
Uploadify + CI / Experience? - by El Forum - 03-15-2009, 08:17 AM
Uploadify + CI / Experience? - by El Forum - 03-15-2009, 08:34 AM
Uploadify + CI / Experience? - by El Forum - 03-15-2009, 08:53 AM
Uploadify + CI / Experience? - by El Forum - 03-23-2009, 07:44 AM
Uploadify + CI / Experience? - by El Forum - 06-05-2009, 06:09 AM
Uploadify + CI / Experience? - by El Forum - 10-08-2009, 11:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB