File Upload?

Help
rami
2009-04-13
2013-05-30
  • rami

    rami - 2009-04-13

    Hello!
    I am using this script to upload a file:

    <?php
    $snoopy = new Snoopy;
    $snoopy->submit("http://localhost/uploadplain.php",
                    array("upload" => "Upload"),
                    array("userfile" => $file));
    echo $snoopy->results;
    ?>

    But an PHP-Script with the following code

    <?php
    echo "\$_REQUEST=\n";var_dump($_REQUEST);
    echo "\$_FILES=\n";var_dump($_FILES);
    ?>

    only returns

    $_REQUEST=
    array(1) {
      ["upload"]=>
      string(9) "Hochladen"
    }
    $_FILES=
    array(0) {
    }

    Do anyone know a solution?

     
    • rami

      rami - 2009-04-13

      Ive got it.
      $snoopy->set_submit_multipart();

       
  • sombir

    sombir - 2013-04-11

    its too easssy but can you plz explain how it properly works or i need to saw snoop.php

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks