SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    "script shows error 7"... error 7 to what? Function? Apache? PHP?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  3. #3
    SitePoint Member
    Join Date
    Feb 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Closed] - Big size file upload problem in PHP

    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


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •