<legend id='3eLLt'><style id='3eLLt'><dir id='3eLLt'><q id='3eLLt'></q></dir></style></legend>
  • <small id='3eLLt'></small><noframes id='3eLLt'>

  • <tfoot id='3eLLt'></tfoot>
    <i id='3eLLt'><tr id='3eLLt'><dt id='3eLLt'><q id='3eLLt'><span id='3eLLt'><b id='3eLLt'><form id='3eLLt'><ins id='3eLLt'></ins><ul id='3eLLt'></ul><sub id='3eLLt'></sub></form><legend id='3eLLt'></legend><bdo id='3eLLt'><pre id='3eLLt'><center id='3eLLt'></center></pre></bdo></b><th id='3eLLt'></th></span></q></dt></tr></i><div id='3eLLt'><tfoot id='3eLLt'></tfoot><dl id='3eLLt'><fieldset id='3eLLt'></fieldset></dl></div>

      • <bdo id='3eLLt'></bdo><ul id='3eLLt'></ul>

        $_FILE 上传大文件会出现错误 1,即使 upload_max_size 大于文件大小

        $_FILE upload large file gives error 1 even though upload_max_size is bigger than the file size($_FILE 上传大文件会出现错误 1,即使 upload_max_size 大于文件大小)
        <legend id='VhLDp'><style id='VhLDp'><dir id='VhLDp'><q id='VhLDp'></q></dir></style></legend>

          <i id='VhLDp'><tr id='VhLDp'><dt id='VhLDp'><q id='VhLDp'><span id='VhLDp'><b id='VhLDp'><form id='VhLDp'><ins id='VhLDp'></ins><ul id='VhLDp'></ul><sub id='VhLDp'></sub></form><legend id='VhLDp'></legend><bdo id='VhLDp'><pre id='VhLDp'><center id='VhLDp'></center></pre></bdo></b><th id='VhLDp'></th></span></q></dt></tr></i><div id='VhLDp'><tfoot id='VhLDp'></tfoot><dl id='VhLDp'><fieldset id='VhLDp'></fieldset></dl></div>
              <tbody id='VhLDp'></tbody>

            <small id='VhLDp'></small><noframes id='VhLDp'>

            • <bdo id='VhLDp'></bdo><ul id='VhLDp'></ul>
            • <tfoot id='VhLDp'></tfoot>
                • 本文介绍了$_FILE 上传大文件会出现错误 1,即使 upload_max_size 大于文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个简单的上传表单:

                  I have a simple upload form with:

                  enctype="multipart/form-data"/>
                  

                  input type="hidden" name="MAX_FILE_SIZE" value="5900000" />
                  

                  在 php.ini 中应用以下设置(通过 phpini() 检查):

                  And the following settings, that are applied (checked through phpini()) in php.ini:

                  upload_max_filesize = 7MB  
                  memory_limit = 64M  
                  post_max_size = 8MB  
                  

                  我尝试上传一个很小的文件 - 500k 并且它通过了

                  I try to upload a file that is small - 500k and it goes through

                  我尝试上传一个 5MB 的文件(小于 upload_max_filesizepost_max_size 设置),但它失败并显示错误代码 1:它说的是:

                  I try to upload a file that is 5MB (smaller than both upload_max_filesize and post_max_size settings) and it fails with error code 1: which says is:

                  UPLOAD_ERR_INI_SIZE值:1;上传的文件超过了 php.ini 中的 upload_max_filesize 指令.

                  UPLOAD_ERR_INI_SIZE Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.

                  有人知道发生了什么吗?

                  Anyone has a clue what is going on?

                  推荐答案

                  我认为这是因为一个错字.而不是

                  I think this is because of a typo. Instead of

                  upload_max_filesize = 7MB
                  

                  它应该是

                  upload_max_filesize = 7M
                  

                  再次使用 phpinfo() 来检查实际应用了什么值.

                  use phpinfo() again to check what value actually gets applied.

                  这篇关于$_FILE 上传大文件会出现错误 1,即使 upload_max_size 大于文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <small id='rKGDo'></small><noframes id='rKGDo'>

                  <i id='rKGDo'><tr id='rKGDo'><dt id='rKGDo'><q id='rKGDo'><span id='rKGDo'><b id='rKGDo'><form id='rKGDo'><ins id='rKGDo'></ins><ul id='rKGDo'></ul><sub id='rKGDo'></sub></form><legend id='rKGDo'></legend><bdo id='rKGDo'><pre id='rKGDo'><center id='rKGDo'></center></pre></bdo></b><th id='rKGDo'></th></span></q></dt></tr></i><div id='rKGDo'><tfoot id='rKGDo'></tfoot><dl id='rKGDo'><fieldset id='rKGDo'></fieldset></dl></div>
                    1. <tfoot id='rKGDo'></tfoot>
                      • <bdo id='rKGDo'></bdo><ul id='rKGDo'></ul>
                          <tbody id='rKGDo'></tbody>

                            <legend id='rKGDo'><style id='rKGDo'><dir id='rKGDo'><q id='rKGDo'></q></dir></style></legend>