Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

file uploader in Perl + Flash 10 question
  • Environment: Linux RHES3, hosted, Uploadify v.1.6.2 (testing on Windows XP using IE 7.0.5730.13)

    Hello,
    I'm trying to write the file upload part (upload.php) in Perl. I already have a standard upload process (in Perl) that I have, but the input form field for it is .
    So I know that value in the variable upfile is what I need to get to upload a file, but I want to make sure I understand what I need to use from Uploadify. I think it's Datafile, but I want to make sure before I start down the wrong path.
    Also, with the multiple files, how do I reference each value?

    I know these seem like stupid questions, but I don't have a lot of time to create this proof-of-concept test to see (as I believe) that this will be the solution we are looking for.

    Also, we have run into issues with other software we've tried that use Flash. Apparently Flash 10 has some additional security features that breaks some of the multiple file uploaders we've looked at. Are you aware of any issues with Flash 10?

    Thank you!

    James Hill
  • I'm not familiar with Perl, but by default flash uses 'Filedata' as the key to the uploading file. We have also programmed it so you can set it to what ever you like using the option 'fileDataName' so you could use

    fileDataName: 'upfile',

    and keep your existing backend script.

    The multiple upload is a 'play on concept'. Uploadify doesn't actually send multiple files to the upload script. It stores a queue of files that the user wishes to upload. When uploadify determines, it releases one file from the queue and uploads it. This single file is then sent to the upload script. When you see multiple files uploading at one time, you are actually seeing many single files uploading. The result is the upload script has an independent link to a single file. You'll never see an array of files in the upload script, just one.

    I hope that answers your question. If I've just confused the situation let me know, and I'll try a different explaination
  • Thank you for the quick turn-around. I will work on getting my test set up and impress my boss with the software (as I am)

    Thank you for the great software!
  • I have previously written a Perl script to upload single file using Uploadify without problems.. I have used 'Filedata' field to get the file/filename when uploading, today I'm writing Perl to accept multiple files upload - what field would I have to use?

    @TravisN, like you mentioned in your previous comment above that a single file is uploaded at a time.. does that means when we're doing multiple files upload we only check 'Filedata' field and our script (Perl, in my case) is called multiple times for EACH file upload?