Problem uploading large files to Ubuntu Server

Discussion in 'PHP' started by NoamBarz, May 2, 2014.

  1. #1
    Hi,

    I've been having trouble uploading large files to my Ubuntu server, using PHP.
    The limit seems to be 10M - not nearly enough.
    I've already taken care of everything I could think of in the php.ini file - max_execution_time, max_input_time, post_max_size, upload_max_filesize etc.

    The script works and I can see the progress bar working. After the file is fully uploaded, I have a script that tests the file validity. The script fails because the file doesn't exist.

    So I think the file is uploaded, but for some reason, not saved.

    Any ideas?
     
    NoamBarz, May 2, 2014 IP
  2. hdewantara

    hdewantara Well-Known Member

    Messages:
    540
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #2
    Hi.
    Any reports from your server's error log? Also, pure PHP can't use 'progress bar'; that's as far as I know. So you must be using HTML5 technologies perhaps?

    Hendra
     
    hdewantara, May 2, 2014 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Really hard to help you without seeing your upload code... Actually, effectively impossible to help without seeing your code.

    ... and yeah, agreeing with what @hdewantara said, which is basically: "what progress bar?" Are you Ajax uploading or something? Though again, the new lengthComputable / onprogress scripting is NOT HTML 5... even if people keep calling it that...
     
    deathshadow, May 2, 2014 IP
    hdewantara likes this.
  4. hdewantara

    hdewantara Well-Known Member

    Messages:
    540
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    #4
    @deathshadow: Ahh you're right, General:p
    It belongs to the XMLHttpRequest2 specification, not HTML5's.

    Learning something new, everyday.
    Hendra
     
    hdewantara, May 2, 2014 IP