久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

      <tfoot id='HvLOf'></tfoot>
      1. <legend id='HvLOf'><style id='HvLOf'><dir id='HvLOf'><q id='HvLOf'></q></dir></style></legend>

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

      2. 文件太大時(shí)上傳不正確

        Upload doesn#39;t work right when the file is too big(文件太大時(shí)上傳不正確)
        <i id='hF22G'><tr id='hF22G'><dt id='hF22G'><q id='hF22G'><span id='hF22G'><b id='hF22G'><form id='hF22G'><ins id='hF22G'></ins><ul id='hF22G'></ul><sub id='hF22G'></sub></form><legend id='hF22G'></legend><bdo id='hF22G'><pre id='hF22G'><center id='hF22G'></center></pre></bdo></b><th id='hF22G'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hF22G'><tfoot id='hF22G'></tfoot><dl id='hF22G'><fieldset id='hF22G'></fieldset></dl></div>
        • <legend id='hF22G'><style id='hF22G'><dir id='hF22G'><q id='hF22G'></q></dir></style></legend>

        • <small id='hF22G'></small><noframes id='hF22G'>

            • <bdo id='hF22G'></bdo><ul id='hF22G'></ul>
                <tbody id='hF22G'></tbody>
                <tfoot id='hF22G'></tfoot>

                  本文介紹了文件太大時(shí)上傳不正確的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我有一個(gè) PHP 應(yīng)用程序,我可以在其中上傳文件.當(dāng)我上傳大多數(shù)文件并執(zhí)行 print_r($_FILES) 時(shí),我得到如下信息:

                  I have a PHP app where I can upload files. When I upload most files and do a print_r($_FILES), I get something like this:

                  Array
                  (
                      [import] => Array
                          (
                              [name] => Array
                                  (
                                      [excel_file] => COD MKTG 2.csv
                                  )
                  
                              [type] => Array
                                  (
                                      [excel_file] => application/vnd.ms-excel
                                  )
                  
                              [tmp_name] => Array
                                  (
                                      [excel_file] => /tmp/phpy8mEKn
                                  )
                  
                              [error] => Array
                                  (
                                      [excel_file] => 0
                                  )
                  
                              [size] => Array
                                  (
                                      [excel_file] => 1584286
                                  )
                  
                          )
                  
                  )
                  

                  我有另一個(gè) 13 兆字節(jié)的 CSV 文件,當(dāng)我嘗試上傳它時(shí),我得到了這個(gè):

                  I have another CSV file that's more like 13 megabytes, and when I try to upload that, I get this:

                  Array
                  (
                      [import] => Array
                          (
                              [name] => Array
                                  (
                                      [excel_file] => COD MKTG.csv
                                  )
                  
                              [type] => Array
                                  (
                                      [excel_file] => 
                                  )
                  
                              [tmp_name] => Array
                                  (
                                      [excel_file] => 
                                  )
                  
                              [error] => Array
                                  (
                                      [excel_file] => 1
                                  )
                  
                              [size] => Array
                                  (
                                      [excel_file] => 0
                                  )
                  
                          )
                  
                  )
                  

                  我沒(méi)有收到任何說(shuō)文件太大的錯(cuò)誤.我只是得到一個(gè)格式錯(cuò)誤的 $_FILES.我將 php.ini 中的 post_max_size 設(shè)置為 100MB.為什么會(huì)發(fā)生這種情況?

                  I don't get any error saying the file's too big. I just get a malformed $_FILES. I have post_max_size in php.ini set to 100MB. Why is this happening?

                  推薦答案

                  根據(jù) PHP 文檔,錯(cuò)誤代碼 1 是 UPLOAD_ERR_INI_SIZE: "上傳的文件超過(guò)了 php.ini 中的 upload_max_filesize 指令"

                  As per the PHP docs, error code 1 is UPLOAD_ERR_INI_SIZE: "The uploaded file exceeds the upload_max_filesize directive in php.ini"

                  您需要確保正確設(shè)置以下所有變量:

                  You need to make sure all the following variables are properly set:

                  upload_max_filesize - 任何文件的最大大小上傳中的單個(gè)文件
                  max_file_uploads - 允許的文件總數(shù)上傳
                  post_max_size - 發(fā)布的所有數(shù)據(jù)的總和(表單數(shù)據(jù)+文件)
                  memory_limit - 必須 > post_max_size,以便為PHP + 腳本開(kāi)銷

                  upload_max_filesize - max size of any individual file in an upload
                  max_file_uploads - total number of files allowed to be uploaded
                  post_max_size - sum total of all data being POSTed (form data + files)
                  memory_limit - must be > post_max_size, to allow space for PHP + script overhead

                  除此之外,還有網(wǎng)絡(luò)服務(wù)器限制.Apache 的 LimitRequestBody 早在 PHP 出現(xiàn)之前就適用了.

                  And on top of that, there's the web server limits as well. Apache's got LimitRequestBody which would apply long before PHP ever enters the picture.

                  這篇關(guān)于文件太大時(shí)上傳不正確的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務(wù)器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無(wú)法連接到主機(jī))
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實(shí)現(xiàn))
                  Sending a byte array from PHP to WCF(將字節(jié)數(shù)組從 PHP 發(fā)送到 WCF)

                      <tbody id='8eiwn'></tbody>

                    1. <i id='8eiwn'><tr id='8eiwn'><dt id='8eiwn'><q id='8eiwn'><span id='8eiwn'><b id='8eiwn'><form id='8eiwn'><ins id='8eiwn'></ins><ul id='8eiwn'></ul><sub id='8eiwn'></sub></form><legend id='8eiwn'></legend><bdo id='8eiwn'><pre id='8eiwn'><center id='8eiwn'></center></pre></bdo></b><th id='8eiwn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8eiwn'><tfoot id='8eiwn'></tfoot><dl id='8eiwn'><fieldset id='8eiwn'></fieldset></dl></div>
                      <legend id='8eiwn'><style id='8eiwn'><dir id='8eiwn'><q id='8eiwn'></q></dir></style></legend>
                        <tfoot id='8eiwn'></tfoot>

                        <small id='8eiwn'></small><noframes id='8eiwn'>

                          <bdo id='8eiwn'></bdo><ul id='8eiwn'></ul>
                          • 主站蜘蛛池模板: 国产视频线观看永久免费 | 亚洲精品中文字幕在线观看 | 亚洲国产中文字幕 | 国产精品18久久久久久白浆动漫 | 日韩久久久久久 | 福利视频大全 | 天天综合久久 | 91精品国产乱码久久久久久 | 欧美一级www片免费观看 | 精品网站999| 国产日韩欧美 | 色天天综合| 亚洲精品久久久久久久久久久 | 农夫在线精品视频免费观看 | 成人一区二区三区视频 | 做a网站 | 一区二区三区日韩 | 日韩一区二区精品 | 午夜在线小视频 | 国产精品区二区三区日本 | 亚洲日韩中文字幕一区 | 免费一级黄色录像 | 国产日产欧产精品精品推荐蛮挑 | 亚洲国产成人在线视频 | 日韩在线不卡 | 亚洲高清在线 | 国产超碰人人爽人人做人人爱 | 91视视频在线观看入口直接观看 | 久久久亚洲成人 | 狠狠操狠狠干 | 天天干.com| 欧美精品国产一区二区 | 夜夜爽99久久国产综合精品女不卡 | 久久成人精品视频 | 一级黄色片毛片 | 欧美激情久久久 | 国产99久久精品一区二区永久免费 | 国产成人黄色 | 日本不卡一区二区三区在线观看 | 成人自拍视频网站 | 蜜月aⅴ免费一区二区三区 99re在线视频 |