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

<legend id='2aGJ0'><style id='2aGJ0'><dir id='2aGJ0'><q id='2aGJ0'></q></dir></style></legend>
    <bdo id='2aGJ0'></bdo><ul id='2aGJ0'></ul>
  • <small id='2aGJ0'></small><noframes id='2aGJ0'>

      1. <i id='2aGJ0'><tr id='2aGJ0'><dt id='2aGJ0'><q id='2aGJ0'><span id='2aGJ0'><b id='2aGJ0'><form id='2aGJ0'><ins id='2aGJ0'></ins><ul id='2aGJ0'></ul><sub id='2aGJ0'></sub></form><legend id='2aGJ0'></legend><bdo id='2aGJ0'><pre id='2aGJ0'><center id='2aGJ0'></center></pre></bdo></b><th id='2aGJ0'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2aGJ0'><tfoot id='2aGJ0'></tfoot><dl id='2aGJ0'><fieldset id='2aGJ0'></fieldset></dl></div>
        <tfoot id='2aGJ0'></tfoot>
      2. 如何上傳大文件 &gt;Laravel 5 中的 5MB

        How to upload large file gt; 5MB in laravel 5(如何上傳大文件 gt;Laravel 5 中的 5MB)
        1. <tfoot id='PxaLz'></tfoot>

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

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

                  本文介紹了如何上傳大文件 &gt;Laravel 5 中的 5MB的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我可以知道如何在 Laravel 5 中上傳超過 5Mb 的大文件嗎?我正在嘗試上傳大約 10MB 的圖像文件但它沒有上傳,我搜索了很多并更新了 php.ini

                  May I know how to upload large file, more than 5Mb in Laravel 5? I am trying to upload around 10MB image file but it is not uploading, I searched a lot and updated following settings in php.ini

                  post_max_size = 500M;
                  memory_limit = 500M;
                  upload_max_filesize = 500M
                  

                  我已重新啟動 Apache 服務器,但仍有問題.php.ini 或 Laravel 中是否還有其他設置可以上傳大文件?請幫忙.

                  I have restarted Apache server but still having issue. Is there any other setting in php.ini or in Laravel to upload large files? Please help.

                  編輯

                  $image = $request->file('image');
                  
                              if($image && $image != '') {
                  
                                  $extension  = $image->getClientOriginalExtension();
                                  $imageName = $this->getUniqueName($extension);
                                  $image->move('gimages/profile_images/', $imageName);
                                  $profile_image = $imageName;
                                  $update_user_data['image'] = $profile_image;
                              }
                  

                  非常感謝!

                  推薦答案

                  如果你想上傳大文件,你應該使用流.這是執行此操作的代碼:

                  If you want to upload big files you should use streams. Here’s the code to do it:

                  $disk = Storage::disk('s3');
                  $disk->put($targetFile, fopen($sourceFile, 'r+'));
                  

                  即使您上傳幾 GB 的文件,PHP 也只需要幾 MB 的 RAM.

                  PHP will only require a few MB of RAM even if you upload a file of several GB.

                  來源:https://murze.be/2015/07/upload-large-files-to-s3-using-laravel-5/

                  有關 Storage 的用法和配置,請參閱 Lrvl5 文檔:https://laravel.com/docs/5.0/filesystem

                  See Lrvl5 doc for usage and config of Storage : https://laravel.com/docs/5.0/filesystem

                  這篇關于如何上傳大文件 &gt;Laravel 5 中的 5MB的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  enable SOAP on PHP(在 PHP 上啟用 SOAP)
                  Get received XML from PHP SOAP Server(從 PHP SOAP 服務器獲取接收到的 XML)
                  not a valid AllXsd value(不是有效的 AllXsd 值)
                  PHP SoapClient: SoapFault exception Could not connect to host(PHP SoapClient:SoapFault 異常無法連接到主機)
                  Implementation of P_SHA1 algorithm in PHP(PHP中P_SHA1算法的實現)
                  Sending a byte array from PHP to WCF(將字節數組從 PHP 發送到 WCF)
                    <bdo id='cxTz6'></bdo><ul id='cxTz6'></ul>
                    • <legend id='cxTz6'><style id='cxTz6'><dir id='cxTz6'><q id='cxTz6'></q></dir></style></legend>

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

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

                          <tfoot id='cxTz6'></tfoot>
                            主站蜘蛛池模板: 久久久久久97 | 蜜桃视频一区 | 在线观看a视频 | 国产一区不卡 | 日本精品在线视频 | 特黄aaaaaaaaa真人毛片 | 国产伊人网 | 欧洲美一区二区三区亚洲 | 免费成人黄色 | 免费看色片| 精品久久国产 | 久久都是精品 | 国产剧情一区 | 成人一区在线观看 | 九九精品免费视频 | 日产久久视频 | 成人精品影院 | 麻豆精品在线播放 | 91成人国产 | 黄色免费网站在线观看 | 亚洲精品乱码久久久久久动漫 | 亚洲国产精品va在线看黑人 | 久久久久一区 | 欧美日韩精品 | 国产一区在线播放 | 成人在线免费视频观看 | 91丨九色丨蝌蚪丨丝袜 | 日韩三级免费 | 黄色小视频免费观看 | 国产亚洲区 | 一区二区不卡视频 | 久久精品久久精品 | 午夜性色 | av播播| 黄色一级视频在线观看 | 男女啪啪免费网站 | 五月色丁香 | 精品黄色片 | 香蕉视频在线免费看 | 在线综合网 | 91久久久久久久久久久 |