Php method is_uploaded_file() fails without a reason!

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

    Php method is_uploaded_file() fails without a reason!

    Hello,

    I have a PHP based site running for 2 years without any problems. The
    user can upload images and I run the is_uploaded_fil e() method to
    check if the file was really uploaded via HTTP POST. During the last
    week this method fails. I haven't changed anything in my code, I was
    on holidays!

    Were there any updates that made my code malfunction?
    Do you have any other ideas on what is the problem?

    PS: I know that PHP is not your responsibility but I'm stuck, so I'm
    trying everything.

    Thank you
  • =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?=

    #2
    Re: Php method is_uploaded_fil e() fails without a reason!

    yord escribió:
    I have a PHP based site running for 2 years without any problems. The
    user can upload images and I run the is_uploaded_fil e() method to
    check if the file was really uploaded via HTTP POST. During the last
    week this method fails. I haven't changed anything in my code, I was
    on holidays!
    Things I can think of:

    - There's a problem with the temp directory where uploads are stored
    - The sysadmin installed or upgraded a security filter like mod_security
    - The sysadmin changed the default settings in Apache or PHP that affect
    the maximum size of uploads




    --
    -- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
    -- Mi sitio sobre programación web: http://bits.demogracia.com
    -- Mi web de humor al baño María: http://www.demogracia.com
    --

    Comment

    • GreenMonkey

      #3
      Re: Php method is_uploaded_fil e() fails without a reason!

      On Jul 24, 8:12 am, "Álvaro G. Vicario"
      <alvaroNOSPAMTH A...@demogracia .comwrote:
      yord escribió:
      >
      I have a PHP based site running for 2 years without any problems. The
      user can upload images and I run the is_uploaded_fil e() method to
      check if the file was really uploaded via HTTP POST. During the last
      week this method fails. I haven't changed anything in my code, I was
      on holidays!
      >
      Things I can think of:
      >
      - There's a problem with the temp directory where uploads are stored
      - The sysadmin installed or upgraded a security filter like mod_security
      - The sysadmin changed the default settings in Apache or PHP that affect
      the maximum size of uploads
      >
      --
      --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
      -- Mi sitio sobre programación web:http://bits.demogracia.com
      -- Mi web de humor al baño María:http://www.demogracia.com
      --
      Hi,
      I agree with this.
      Also you might want to check if the safe_mode is turned on by the
      admin of the hosting. To my knowledge, if the safe_mode is turned on,
      then some functions (i.e. mail, upload, etc) are not applicable. I
      once experienced the same thing with mail() function.

      Comment

      Working...