Howdy, Stranger!

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

Uploader Just not working
  • I'm pulling my hair out here.

    I have installed/setup uploadify, and everything seems fine, but when I select my file and click 'Open', I get the progress bar, but it just sits there.

    Yes, I have 'auto': true. I have also tried firing it off with a click event (Upload Files), but it still just sits there.

    All mapping seems absolutely fine. It is calling a .cfm script. I have remove the
    ==========THE JS==========
    $('#uploadifyElement').uploadify({
    'uploader': '/_js/uploadify/uploadify.swf',
    'script': '/control/p_subscribers/f_register_new/upload_batch/uploadify.cfm',
    'folder': '/control/p_subscribers/f_register_new/upload_batch',
    'cancelImg': '/_js/uploadify/cancel.png',
    'auto': true
    });

    ==========UPLOAD SCRIPT==========
    filefield="fileData"
    destination="#siteLocation#\control\p_subscribers\f_register_new\upload_batch"
    nameconflict="makeunique">

    Any suggestions will be greatly appreciated.

    Thank you!
  • Your upload script must return/echo some form of data (even if it's just a '1'), otherwise onComplete wont fire and it will appear that it's not finishing.
  • Travisn, many thanks for your reply.

    I am now outputting a 1, but still no good. Here is the upload script I am now working with.

    Thanks again Travisn.

    ============UPLOAD SCRIPT==============

    thisPath = ExpandPath("*.*");
    thisDirectory = GetDirectoryFromPath(thisPath);
    FileDir = thisDirectory & "uploads/";






    filefield="fileData"
    destination="#FileDir#"
    nameconflict="makeunique"
    mode="777">


    writeoutput(1);
  • One other point that may be worth noting.. the file doesn't get uploaded and the directory doesn't get created. From what I can tell, the upload script is not even getting called.
  • use onError to find out what errors are being produced. If it can't find the script it will output HTTP error 404.
  • How frustrating. I'm not getting an error back or anything.. it just hangs, so I stuck it online for you to see and it works perfectly online:

    http://d417863.u133.fasthit.net/uploadify/

    It must be some kind of local permissions thing. Any ideas what this might be?

    I'm running windows XP, IIS 5.1

    Thanks for your help Travis!

    Jason
  • I just tried your link, and everything went through without a problem.
  • Correct, it worked beautifully when I stuck it online, but it is not working on my local machine.

    Any ideas why this might be?
  • PS. great jQuery plugin. I usually don't persist so long with plugins if I can't get them working, but this one seems worth it. Nice job!
  • I experience the same problem.
    After uploading it says complete but no file in the uploads folder.

    What am I missing.

    I have just uploaded it to another website (on a different server) there it works OK. Does my server need a special PHP setting
  • ace5714 said:
    I experience the same problem.
    After uploading it says complete but no file in the uploads folder.

    What am I missing.

    I have just uploaded it to another website (on a different server) there it works OK. Does my server need a special PHP setting

    Is your server running on the same machine that you are testing from?

    For development/testing, you may need to set the scriptAccess setting. See http://www.uploadify.com/documentation/.
  • Hi bdp, I have scriptAccess set to always, but the problem remains.
  • Both the servers are remote.

    One server is in the Netherlands the other one in Danmark.

    I have changed the scriptAccess :always but no difference.
    the server error log gives the following message
    [Fri Aug 07 11:12:11 2009] [error] [client xx.xxx.xxx.xx] mod_security: Filtering against POST payload requested but payload is not available [hostname "www.xxxxxxxxxxxxxx.nl"] [uri "/example/scripts/uploadify.php"] [unique_id "oad78lkSs1YAACV6HikAAAAA"]
  • Any more info here? I have an onError and a onAllComplete which simply throws up an alert box. onError is never called, onAllComplete is, and I see my alert box. My upload.cfm file has a as the very first statement - this is never invoked. So, running locally (and I've not tried on another server), it appears my upload script is not getting called. the uploadify function is checking it - if I change the name to something that doesn't exist, I get an error. So I think I have all the pieces right, but can't get the files to ever appear in the upload folder. I chmod'ed the uploads folder to 777 for testing - no dice.

    This is on apache, cf8, mac os x.

    In my apache access log, I see a POST statement with a status of 200 for the upload.cfm, but it appears that file isn't getting processed by the server if the cflog isn't logging....

    Thanks!