Simple upload not working (using xampp)

Discussion in 'PHP' started by dtang4, Jul 2, 2010.

  1. #1
    I am testing a really basic upload script and it doesn't seem to be working. I am using xampp.

    After upload, I do a print_r on $_FILE. There are no errors (i.e. error code = 0). However, the tmp_name points to a file that doesn't exist. I checked my tmp directory and it doesn't contain the tmp_name file. I also checked my php.ini file to ensure the tmp upload directory was set properly.

    Any thoughts?

    Thanks.

    Dave
     
    dtang4, Jul 2, 2010 IP
  2. dipenrique

    dipenrique Peon

    Messages:
    181
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    have you given write permission to the directory in which the files are to be uploaded?
     
    dipenrique, Jul 3, 2010 IP
  3. dtang4

    dtang4 Active Member

    Messages:
    303
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Got the question resolved. Thanks.
     
    dtang4, Jul 6, 2010 IP