超出最大上传大小了,
还有header前不能有输出。

解决方案 »

  1.   

    明白了,可以在当前页最上方 加入 error_reporting(0); 不显示出错。判断上传是否成功,不行的话输出信息
      

  2.   

    to feel8(准备早起的鸟)
    怎么还一样,但第二条没有出现了。
    <?php
    error_reporting(0); 
    .........是加在这里吗。
      

  3.   

    Warning: Max file size exceeded - file [upfile] not saved in Unknown on line 0没有添家Max file size限制
      

  4.   

    to feel8(准备早起的鸟)
    加了@error_reporting(0); 
    第一,二个问题都出来了。to jueban9818(绝版英俊) 
    在上传页表单内也加了MAX_FILE_SIZE的限制了。也不行
      

  5.   

    出现以下信息:
    Warning: Max file size of 2097152 bytes exceeded - file [upfile] not saved in Unknown on line 0当上传文件大于默认的2097152后,就出现了上述提示.
    我想不管客户端上传多大的程序都要不出现提示信息,应怎样处理。
      

  6.   

    在PHP.ini文件里有设置上传文件最大值
      

  7.   

    to feel8(准备早起的鸟)  能不能提供一下你的上传程序与处理程序,还有你的PHP.ini文件里有设置上传文件最大值是多少。
      

  8.   

    php.ini 中 display_errors = Off 后,用下面的代码上传,超过大小也没有出错信息
    <?php
    error_reporting(0); 
    echo $size;
    $uploaddir = './';
    $uploadfile = $uploaddir. $_FILES['userfile']['name'];
    print "<pre>";
    if(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploaddir.$_FILES['userfile']['name'])) {
        print "File is valid, and was successfully uploaded.";
    } else {
        print "Possible file upload attack! ";
    }
    ?>
    <form enctype="multipart/form-data" action="" method="POST"> 
    <input type="hidden" name="MAX_FILE_SIZE" value="0">
    Send this file: <input name="userfile" type="file">
    <input type="submit" value="Send File">
    </form>