File upload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tom.grandsaert@gmail.com

    File upload

    I cant get my php script to upload a file to the default dir. I have
    checked all the php.ini variables and made sure there is a default
    temporary dir, as soon as i submit it just reloads the page. this is my
    form

    <form enctype="multip art/form-data" action="<?php echo
    $_SERVER[PHP_SELF]; ?>" method="POST">
    <input type="hidden" name="MAX_FILE_ SIZE" value="30000" />
    Send this file: <input name="userfile" type="file" />
    <input type="submit" value="Send File" />
    </form>

    please help me! i dont know what to do!

  • frizzle

    #2
    Re: File upload

    the flaw isn't in this part -> the page doesn't reload (i recon) but it
    gets posted to itself. Can be a way to do it, but you'll need some php
    to handle that.

    Assuming your coding is all ok, you also have to make sure that your
    permissions are all set to go. Chmod involved dirs and files to 0777,
    test it, and if it works, you know the flaw is in that part,,,,,

    Comment

    • rovisoft

      #3
      re:File upload

      Well this is mainlly because you forgot to add the necessary php
      code:), you may want to read here for more



      Ovidiu
      http://www.DevPlug.com -- Connecting Developers

      Comment

      • tom.grandsaert@gmail.com

        #4
        Re: File upload

        im not sure what you mean by Chmod the involved dirs and files to 0777,
        and i have looked at that handling file uploads page for hours on end.
        For the record im running apache 1.3.3 on a win32 machine with 4.3.9 php

        Comment

        • tom.grandsaert@gmail.com

          #5
          Re: File upload

          yeah jus figured out that chmod is a Unix command. wonder if theres a
          similar one for windows.

          Comment

          Working...