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.
  • Hey,

    Sorry for my language, i'm french...
    I will like to use your script with my upload class who is in the same file as script.

    i don't like to use the destination folder parameters in your script but that of my class.

    Actualy, i've :


    $(document).ready(function() {
    $('#photo').fileUpload({
    'uploader': '<?php echo URL_SITE; ?>conf/js/jquery.uploadify-v1.6.2/uploader.swf',
    'script': '<?php echo URL_SITE; ?>conf/js/jquery.uploadify-v1.6.2/add_photos2.php',
    'cancelImg': '<?php echo URL_SITE; ?>conf/js/jquery.uploadify-v1.6.2/cancel.png',
    'multi': true,
    'buttonText': 'Sélectionner les fichiers à envoyer',
    'fileDataName': 'screen',
    'fileExt': '*.jpeg;*.jpg;*.png',
    'fileDesc': 'Toutes les images',
    'width': 135

    });
    });



    et when i uploaded my images, i had "IO Error - IMG_3042 (Large).jpg - 100%" but i don't know why..

    a bit of my class.
    	$handle = new upload($_FILES['screen'], 'fr_FR');
    if ($handle->uploaded) {

    $handle->allowed = array('image/*');
    $handle->file_max_size = '1048576'; // 1000 KB > 1 MO
    $handle->image_resize = true;
    $handle->image_ratio = true;
    $handle->image_y = 600;
    $handle->image_x = 800;
    $handle->image_text = 'WWW.xxx.COM';
    $handle->image_text_color = '#ffffff';
    $handle->image_text_background = '#000000';
    $handle->image_text_position = 'BR';
    $handle->image_text_padding_x = 10;
    $handle->image_text_padding_y = 1;
    $handle->image_text_font = 2;
    $handle->image_text_background_percent = 50;
    $handle->image_reflection_height = '20px';
    $handle->image_reflection_opacity = 100;
    $nom_jeux = uniqid(rand());
    $handle->file_new_name_body = $nom_jeux;
    $handle->process('../photos/'.$nom_album);

    if ($handle->processed) {

    $handle->image_resize = true;
    $handle->image_ratio = false;
    $handle->image_ratio_fill = 'C';
    $handle->image_y = 87;
    $handle->image_x = 116;
    $handle->image_background_color = '#000000';
    $handle->file_new_name_body = $nom_jeux;
    $handle->process('../photos/'.$nom_album.'apercu/');

    if ($handle->processed) {

    $handle->clean();
    $id_album = sql_protect($_POST['id_album']);
    $req_add_jeux = 'INSERT INTO photos SET photos_lien = \"'.$handle->file_dst_name.'\", photos_alb_id_photos = \"'.$id_album.'\"';
    if(sql_query($req_add_jeux,'ADD CAT'))
    {
    my_redirect(3,'add_photos.php?id='.$_POST['id_album'],'Photo uploadé et redimensionné avec succès !',1);
    die();
    }
    }
    else
    {
    $msg = 'error : ' . $handle->error;
    }
    }
    else
    {
    $msg = 'error : ' . $handle->error;
    }
    }
    else
    {
    $msg = $handle->error;
    }


    Thx for your help
  • Can you add the following override code to your jQuery, and report back on the error message that appears
    		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);
    },
  • Could not find upload script. Use a path relative to: /homez.34/...


    i fixed by a relative path, now i haven't error message but nothing upload is sent.

    Am I obliged that the script of upload is independent? And thus not integrated into the same page?
  • Flash temporarily uploads the file to the server, it then transfers the file to the upload script for processing and saving to the server. If an error is encountered in the upload script you wont know.

    If you put some error handling code into your upload script and echo it back, it will reveal what is happening. You can use onComplete to display the error returned by the upload script. Below is a sample of what I use to check for errors generated by the upload script.

    switch ($_FILES['Filedata']['error'])
    {
    case 0:
    $msg = \"No Error\";
    break;
    case 1:
    $msg = \"The file is bigger than this PHP installation allows\";
    break;
    case 2:
    $msg = \"The file is bigger than this form allows\";
    break;
    case 3:
    $msg = \"Only part of the file was uploaded\";
    break;
    case 4:
    $msg = \"No file was uploaded\";
    break;
    case 6:
    $msg = \"Missing a temporary folder\";
    break;
    case 7:
    $msg = \"Failed to write file to disk\";
    break;
    case 8:
    $msg = \"File upload stopped by extension\";
    break;
    default:
    $msg = \"unknown error \".$_FILES['Filedata']['error'];
    break;
    }

    $stringData = \"path: \".$_GET['folder'].\"\n targetFile: \".$targetFile.\"\n Error: \".$_FILES['Filedata']['error'].\"\nError Info: \".$msg;

    echo $stringData;

    then in onComplete

    onComplete: function(a, b, c, d, e){
    alert(d);
    },
  • hmm..
    I have just tested and the problem come of a checking admin autorization because the script haven't session cookie.

    retourned message
    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
    <title>Accès sécurisé</title>
    <link href=\"http://www.xxx.com/administration/style/css/transdmin.css\" rel=\"stylesheet\" type=\"text/css\"/>
    <meta name=\"robots\" content=\"noindex,follow\" />
    </head>

    <body>
    <table align=\"center\" width=\"600\" id=\"main\" style=\"margin-top:50px; float:none;\">
    <tr>
    <td>
    <div id=\"containerHolder\">
    <form method=\"post\">
    Mot de passe : <input type=\"password\" name=\"mot_de_passe\" />&amp;nbsp;
    <input type=\"submit\" value=\"Se connecter\" />
    </form>
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>


    I am going to test to separate the class of the page
  • What is the output of scriptData ?

    $_POST ? $_GET ? for associate id album

    thx
  • $_GET. But I have submitted changes to Ronnie for given the option to use POST or GET. Default is likely to remain as GET.
  • I managed to upload except for the addition of several files.

    I suppose that it is necessary to make a buckle of FILES?

    In any case, thank you for your help, shall indeed be that if in the demonstration, it is a "complete" example with all the possibilities there
  • Sorry, I don't understand what you just
  • sry for my english :(
    The french guys are bad !

    So..
    When i selected >= 2 images with the browse button and i upload.

    Just one image is sent, not all.

    Why ?
  • You are using a different method for saving the files than I am familiar with, So it makes it hard to comment. But, flash uploaders don't send an array of files to the backend script. They call the script individually for each file once it has finished sending the data to the temporary storage. With a PHP backend script you also need to make sure you echo some form of data ie echo '1'; This is to trigger the onComplete function on Mac OS X.

    I'm assuming that the progress bars are completing, the files just aren't saving to the server?? If this is the case, then the problem lies in your backend script. If you replace your backend script with the default, does it work?
  • Finally that's work !

    it was just one image of all who was so big, and nothing error message notification.

    Is it possible to have a summary of the files which succeeded and those who failed?