http_upload example

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • red

    http_upload example

    The example that come with upload.php in the HTTP_upload package
    creaqtes the follow html:
    <html><body>
    <form action="/public/reenie/t/t.php?submit=1" method="post"
    enctype="multip art/form-data">
    Send these files:<br>
    <input type="hidden" name="MAX_FILE_ SIZE" value="100000">

    <input name="userfile" type="file"> &lt;-<br>
    <input name="otherfile[]" type="file"><br >
    <input name="otherfile[]" type="file"><br >
    <input type="submit" value="Send files">

    </form>
    </body></html>
    When I try to use it, I choose a file and then I click "sned files".
    Nothing happens. The file does not get sent anywhere. Where is it
    supposed to be sent ? Theres nothing anywhere about which directory the
    file is supposed to be sent to, as far as I can see, so the example
    makes no sense to me.

    red
  • Alvaro G. Vicario

    #2
    Re: http_upload example

    *** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT):[color=blue]
    > When I try to use it, I choose a file and then I click "sned files".
    > Nothing happens. The file does not get sent anywhere. Where is it
    > supposed to be sent ? Theres nothing anywhere about which directory the
    > file is supposed to be sent to, as far as I can see, so the example
    > makes no sense to me.[/color]

    The code you copied takes care of sending the file. You must have a script
    somewhere in the server to deal with receiving it. All you need is inside
    the $_FILES variable. Print its values with print_r() and you'll see it
    clear.




    --
    -+ Álvaro G. Vicario - Burgos, Spain
    +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
    ++ Las dudas informáticas recibidas por correo irán directas a la papelera
    -+ I'm not a free help desk, please don't e-mail me your questions
    --

    Comment

    • red

      #3
      Re: http_upload example

      Alvaro G. Vicario wrote:[color=blue]
      > *** red escribió/wrote (Mon, 06 Sep 2004 22:05:49 GMT):
      >[color=green]
      >>When I try to use it, I choose a file and then I click "sned files".
      >>Nothing happens. The file does not get sent anywhere. Where is it
      >>supposed to be sent ? Theres nothing anywhere about which directory the
      >>file is supposed to be sent to, as far as I can see, so the example
      >>makes no sense to me.[/color]
      >
      >
      > The code you copied takes care of sending the file. You must have a script
      > somewhere in the server to deal with receiving it. All you need is inside
      > the $_FILES variable. Print its values with print_r() and you'll see it
      > clear.
      >
      > http://www.php.net/manual/en/features.file-upload.php[/color]

      Yep, that splains it. Thanx. I finally got http_upload to work.
      red

      Comment

      Working...