久久久久久久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>
                            主站蜘蛛池模板: 妞干网福利视频 | 黄色av观看| 日本涩涩视频 | 在线观看精品 | 国产91久久精品一区二区 | 青青草免费在线视频 | 亚洲视频免费 | 欧美精品综合在线 | 91精品国产乱码久久久久久久久 | 亚洲精品在线观 | 91精品国产高清一区二区三区 | 红色av社区 | 日韩综合色 | 超碰在线97国产 | 精品国产乱码久久久久久影片 | 日韩二区 | 亚洲乱码一区二区三区在线观看 | 欧美aⅴ片 | 欧美一级一| 国产精品第2页 | 成人亚洲精品 | 天堂在线免费视频 | 人人澡人人射 | 日日摸日日碰夜夜爽2015电影 | 黄频免费 | 男女羞羞视频免费 | 亚洲一区二区三区在线 | 天天在线操 | 狠狠爱一区二区三区 | 精品国产欧美 | 久久国产免费看 | 久久天天躁狠狠躁夜夜躁2014 | 在线播放亚洲 | 久久久久亚洲精品 | 999久久久 | 国产伦精品一区二区三区高清 | 成人国产精品色哟哟 | 欧美日韩亚洲视频 | av日韩高清 | 国产农村妇女毛片精品久久麻豆 | 激情91|