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.
upload multiple images in cakephp 2.0
  • hi all ..
    if anyone konw about how to upload multiple images in cakephp 2.0
    please tell me how to do that.
  • $(document).ready(function(){
    var path = "<?php echo $this->Html->url('/app/webroot/uploadify/') ?>";
    $('#file_upload').uploadify({
    'buttonText' : 'SELECT FILES',
    'formData' : {
    '<?php echo session_name();?>' : '<?php echo session_id();?>',
    'webroot' : '<?php echo WWW_ROOT; ?>',
    'ds' : '<?php echo DS; ?>'}
    ,
    'swf' : path + 'uploadify.swf',
    'uploader' : path + 'uploadify.php',
    'removeCompleted' : false
    }

    });
    });

    uploadify.php

    $targetFolder = 'files'; // Relative to the webroot

    $www_root = $_POST['webroot'];
    $ds = $_POST['ds'];

    $tempFile = $_FILES['Filedata']['tmp_name'];
    $targetPath = $www_root . $targetFolder;

    $needle = array( ' ', ':', '/', '\\', '#', '*', '\'', '"', '´', '`', '!', '?', '@', '$', '%', '&', '=' );
    $file = str_replace(' ', '_', $_FILES['Filedata']['name'] );
    $targetFile = $targetPath . '/' . $file;
    $n = 1;

    $file_1 = $file;
    while(file_exists($targetFile))
    {
    $file_1 = $n . '_' . $file;
    $targetFile = $targetPath . '/' . $file_1;
    $n++;
    }

    move_uploaded_file($tempFile,$targetFile);