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.
unable to pass through my input field formdata
  • Good Morning,

    I hoping someone can point out the error of my ways (I been struggling to get this to work for days), I have being searching through the forums and tried a number of different suggestions. just cant seem to get it to work as expected.

    I have a user input box, which I want to prefix the filenames,
    My index page is passing though ok, but it's not what the User inputted, but the name of my variable.

    I read it's because initialisation has happened before I enter name in the box, but I cant seem to get update it, I tried the 'setting' method but then I lose the multi upload.

    My Goal:
    Allow user to input their name (don't mind how)
    Upload multiple images at once (automatically) which has their name prefixed.

    I have striped back all the code to just do this basic.

    Would really appreciate the advise/ help

    Thank you.

    Index
    ________________________________________________________________________________________
    <!DOCTYPE html>


    upload




    $(function() {
    $('#file_upload').uploadify({
    'debug' : true,
    'swf' : 'uploadify.swf',
    'uploader' : 'uploadify.php',
    'method' : 'post',
    'formData' : {'surname1' : 'surname1'},


    });
    });





    Enter your Surname:



    __________________________________________________________________________________________


    PHP
    __________________________________________________________________________________________
    <?php<br />/*
    Uploadify v3.1.0
    Copyright (c) 2012 Reactive Apps, Ronnie Garcia
    Released under the MIT License
    */


    // Define a varable
    $someVar = $_POST["surname1"];

    // Define a destination
    $targetFolder = '/uploads'; // Relative to the root


    if (!empty($_FILES)) {
    $tempFile = $_FILES['Filedata']['tmp_name'];
    $targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;
    $targetFile = rtrim($targetPath,'/') . '/' . $someVar . '-' . $_FILES['Filedata']['name'];

    // Validate the file type
    $fileTypes = array('jpg','jpeg','gif','png'); // File extensions
    $fileParts = pathinfo($_FILES['Filedata']['name']);

    if (in_array($fileParts['extension'],$fileTypes)) {
    move_uploaded_file($tempFile,$targetFile);
    echo '1';
    } else {
    echo 'Invalid file type.';
    }
    }
    ?>
    __________________________________________________________________________________________
    Thanks in advanced


  • Did you find a solution?
  • No not yet, still trying, I tried a few work round's with promoting the user for input on page load that works and I can get it to save the variable, but I still cant seem to update the formData (filename). if I have the value set before i load the page meaning value="John" />
    this works perfectly.

    as soon as I figure this out I post my finding, it's really frustrating as it likely something really simple for someone who knows, but i'm missing it.

    it consuming hours, which make me more determined to find it. :-)
    i'll keep this posted.



  • You will discover numerous involving oakley sun shades outlet solar shades, that are very cheap with excellent. Usually these are the ones that have been offered for sale within particularly low priced costs.oakley outlet Prevent them including the problem. You can actually place a really poor high-quality bogus with a great forearms long distance. Be wary of unequal types of surface within the framework. I'm talking about a dieing loss leader.
    cheap nike air max 2012 keep making their mark lets start on huge sport. The Oakley legend grows with each new kind of sunglasses and any one new world-class athlete who sees the top of the his game behind the lenses of your sports performance nike air max 2012 sale discount .