php.ini (very large image file upload)

Discussion in 'PHP' started by hansab, Aug 25, 2011.

  1. #1
    Hi,

    I have a form where people can upload files. My clients needs to send me images. Now they upload 6 images at once. Its working fine when image files are small. But sometimes they have to send 300dpi very large photographs. Which can cross alot of MBs. May be a GB too ?

    So i was not able to edit the php.ini in a shared windows hosting. So i got a VPS. Now in Windows or Linux VPS. If i have to edit php.ini to allow larger images. What do i need to do ? The control panel is Plesk.

    And is it going to be possible for users to upload huge image files on my VPS. What about memory issues, what about time out issues. Please give me all the details. I really need your help and will be thanksful to you.

    Regards
     
    hansab, Aug 25, 2011 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    1) The easiest way would be to download php.ini, edit it locally and upload it back. You can use Notepad, it's just text.

    2) No memory problem - files take storage, not memory.

    3) You can increase the timeout in php.ini too.

    4) You can increase filesize and timeout in the php file, you don't have to edit php.ini.
     
    Rukbat, Aug 25, 2011 IP
  3. hansab

    hansab Active Member

    Messages:
    162
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks. I am hoping for more answers.
     
    hansab, Aug 25, 2011 IP