Not able to upload 100Kb or more file size to my PHP web site.

Discussion in 'Programming/Scripts' started by belmont1964, Sep 14, 2009.

  1. belmont1964

    belmont1964 New Member

    Hello everybody, I am new to linux and I have successfully download and install Ubuntu, PHP 5, and ISPConfig. I have been playing with the ISPConfig. I have my own URL address, and my DNS is up and running. I have started to play with creating PHP webpages.
    I created a simple upload webpage so I can upload files to my server. My first issue was the folder rights permissions. I figure out that proplem.
    My new problem is that I get a error level 2 (means file to large) when I try to upload anything 100kb or more. I can upload successful when my file is 99kb or less.
    I get error 2 from my line in my code
    echo “error is : “ . basename( $_FILES['myupload']['error']);
    and it get my PHP configuration info with this code
    echo phpinfo(INFO_CONFIGURATION);
    In this phpinfo() I get
    upload_max_filesize = 1024M - in my local value and my master value.
    file_uploads = on - in my local value and my master value.
    post_max_size = 1024M - in my local value and my master value.
    I try other computer and get the same problem.
    I do not know is this a ISPConfig issue or PHP issue. I am lost!! Anybody have any ideals?

    Thank you in advance
    Belmont
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    I guess that's a limitation in the PHP script that you're using. Please take a look at its source code.
     
  3. belmont

    belmont New Member

    Late last night I found out that it must be FireFox. I upload last night a 4 Gb file in my Internet Explorer but I still can not upload any file that is 100 Kb or more. I can upload a file that is less then 100 Kb in FireFox. Now I know that this is not a PHP or ISPConfig problem. If anybody has any Idea on why only FireFox browser would not upload files larger than 100 Kb, I appreciate any idea.

    Thank You
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Maybe it's a problem with a Firefox plugin. You can try to disable all plugins and see if it works then.
     

Share This Page