#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    7
    Rep Power
    0

    Big size file upload problem in PHP


    Hi,

    My server has CentOS, Apache and PHP.
    I have set all required parameters in php.ini to handle big size file uploads (post_max_size, memory_limit, timeouts etc.)

    But, still the script doesn't accept a file more than 5MB. On bigger uploads, it returns error 7 (Unable to write to disk).
    I have set 777 permissions on my temporary folder (/opt/php) and during upload, I do see temporary file through my FTP. But, once it reaches 5MB, temporary file disappears and script shows error 7.

    I increased timeout value in httpd.conf and set following too,

    Code:
    <Directory "/opt/php">
         LimitRequestBody 10485760
    </Directory>
    But, no success.

    Please help.

    Thanks,
    Sandeep
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 2003
    Posts
    3,337
    Rep Power
    594
    Do you have per user file limits enabled? See this article.
    There are 10 kinds of people in the world. Those that understand binary and those that don't.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2011
    Posts
    7
    Rep Power
    0
    Hi,

    Sorry for late response.

    The temporary directory was out of quota. I set a new directory path in php.ini and upload is working fine.
    Thanks for your inputs.

    Weird part is, I am able to upload big size files through FTP in the directory (/opt/php) which says "Out of quota".

    Thanks,
    Sandeep

IMN logo majestic logo threadwatch logo seochat tools logo