callbackURL after HTML form upload isn't triggered

Last post 05-07-2008 7:08 AM by suda. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-06-2008 5:21 PM

    • suda
    • Top 75 Contributor
    • Joined on 05-06-2008
    • Warsaw, Poland
    • Posts 5

    callbackURL after HTML form upload isn't triggered

     Hello :)

    I have problem with callbackURL in HTML upload form. After file is uploaded my URL isn't opened, so I can't do any manipulation on this file (converting to FLV etc.). I'm not sure if names of form fields are case sensitive (in documentation there is callbackURL and callbackUrl). My form looks like this:

    <form enctype="multipart/form-data" action="http://<?php echo $nrv_upload_host ?>/Upload.ashx" method="post">
    <<input name="uploadToken" value="<?php echo $nrv_upload_token ?>" type="hidden">
    <input name="destFolderPath" value="upload" type="hidden">
    <input name="callbackURL" value="http://myserver.com/video_uploaded.php" type="hidden">
    File: <input name="uploadFile1" type="file">
    <input value="Upload!" type="submit">
    </form>

  • 05-06-2008 7:07 PM In reply to

    • mmania
    • Top 10 Contributor
    • Joined on 01-20-2008
    • Netherlands
    • Posts 91

    Re: callbackURL after HTML form upload isn't triggered

    Hi Suda, 

    you definetely have an error here... 

    <?php echo $nrv_upload_token ?>

    you are missing the closing ";"


     

  • 05-06-2008 7:56 PM In reply to

    • suda
    • Top 75 Contributor
    • Joined on 05-06-2008
    • Warsaw, Poland
    • Posts 5

    Re: callbackURL after HTML form upload isn't triggered

  • 05-06-2008 9:33 PM In reply to

    • mmania
    • Top 10 Contributor
    • Joined on 01-20-2008
    • Netherlands
    • Posts 91

    Re: callbackURL after HTML form upload isn't triggered

    thanks to you :-)

    learnt something new, I have never tried to do write a PHP line without the ending ;  :-)

    for the callbackurl, make sure you are not testing behing a password protected directory...

    I did that error in the first time... (one of my best Homer Simpson moments... :-)

    ciao

    Luca
     

  • 05-07-2008 1:46 AM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 612

    Re: callbackURL after HTML form upload isn't triggered

     We have verified that your callback is going out but we do not log successful attempts.  I have also verified using my test scripts that the callbacks are working properly.

    Below is a simple test script that will log to a text file all of the entries for a url.

    <?php

    $myFile = "requestlog.txt";
    $fh = fopen($myFile, 'a') or die("can't open file");
    fwrite($fh, 'Requesting URI: ' . $_SERVER['REQUEST_URI'] . "\r\n");
    fwrite($fh, 'Request Time: ' . date("D M j G:i:s T Y") . "\r\n");
    fwrite($fh, 'Query String: ' . $_SERVER['QUERY_STRING'] . "\r\n\r\n");

    fclose($fh);

    ?>

    Make sure you have write access to the local directory by the user running the website.

    Regards,
        Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 05-07-2008 7:08 AM In reply to

    • suda
    • Top 75 Contributor
    • Joined on 05-06-2008
    • Warsaw, Poland
    • Posts 5

    Re: callbackURL after HTML form upload isn't triggered

    I see the problem now. Our beta server had restriction to allow only our IP to prevent intruders :) Now everything works as it should. Thanks for giving me a clue :)

Page 1 of 1 (6 items)