PHP Upload Problems

Discussion in 'PHP' started by interwho, Jan 13, 2011.

  1. #1
    Solved, Thanks!
     
    Last edited: Jan 13, 2011
    interwho, Jan 13, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    What exactly doesn't work? Is it just that it doesn't upload, or does it give a warning somewhere?

    In the fist case, could you check if the the necessary part of the script is actually reached? (Place echo "hello"; In one of the if parts.)
     
    ssmm987, Jan 13, 2011 IP
    interwho likes this.
  3. interwho

    interwho Member

    Messages:
    198
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #3
    It doesn't upload, throw an error, or update the name.
     
    interwho, Jan 13, 2011 IP
  4. interwho

    interwho Member

    Messages:
    198
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #4
    Nevermind, solved it by changing if($_POST) to if(is_uploaded_file()), thanks!
     
    interwho, Jan 13, 2011 IP