This forum is a community forum meant for users of the plugin to collaborate and help solve issues with implementation, etc. Unfortunately, as the creator of the plugin, I do not have much time to attend to every request here as this is only a side project and I must work a full-time job to provide for my family. This is how I keep the Flash version free and the HTML5 version low cost.
UploadiFive 1.1.1 has been released which includes a small fix for added support on touch devices including iOS 6 devices.
Getting Uploadify to work with CodeIgniter
  • Hi guys

    I'm working on a little project and I need to upload several files for an image gallery. Instead of uploading all files seperately, I've decided to use some sort of multi-uploader and that's when I found Uploadify. I've tried implementing it, but it's not working :(

    Here's the code I use (note that I use CodeIgniter functions for a lot of stuff)

    The form

    <?php echo form_open_multipart($this->uri->uri_string); ?>
    <p><label for=\"title\">Title: <br />
    &amp;lt;input type=\"text\" name=\"title\" id=\"title\" /&amp;gt;
    </label></p>
    <p>Select the photos you would like to add to the gallery<br />
    &amp;lt;input type=\"file\" name=\"file_input\" id=\"file_input\" /&amp;gt;
    </p>

    &amp;lt;/form&amp;gt;

    The JS that loads Uploadify:

    $(document).ready(function() {
    $('#file_input').fileUpload({
    'uploader': '/svn/handinhand/assets/js/uploadify/uploader.swf',
    'script': '/svn/handinhand/admin/gallery/upload',
    'folder': '/svn/handinhand/assets/images/galleries',
    'multi': true,
    'auto': true,
    'fileExt': '*.jpg;*.jpeg;*.png;*.gif',
    'buttonText': 'Browse...',
    'cancelImg': '/svn/handinhand/assets/js/uploadify/cancel.png'
    });
    });

    My upload function:

    function upload() {
    if ( ! empty($_FILES)) {
    $tempFile = $_FILES['file_input']['tmp_name'];
    $targetPath = $_SERVER['DOCUMENT_ROOT'] . '/SVN/handinhand/assets/images/galleries';
    $targetFile = str_replace('//','/',$targetPath) . $_FILES['file_input']['name'];

    move_uploaded_file($tempFile,$targetFile&amp;#41;;

    }

    echo '1';
    }


    As far as I can tell Uploadify is loading, I can click on the button, I can select multiple files and when I select them, they are loaded in my uploading queu. With larger files, I see the percentages go up. However, they immediately return "IO Error - picturename - 100%" and the files aren't uploaded to the folder

    Have any of you worked with CI and got this working?
  • I haven't used codeIgniter there is this thread that may/may not help http://uploadify.com/forum/viewtopic.php?f=7&t=47&p=210&hilit=codeigniter#p210
  • http://www.uploadify.com/forums/discussion/comment/14194/#Comment_14194

    this is the exact answer to ur query...
    this will definitely help..
  • I have a form and file input.What i need to do is upload files and parallely insert the form data to the database.Noow uploadify correctly uploads the file but it does not insert the form data in the database.can anyone help????