I'm using Laravel on Homestead and Forge, and am uploading images with the Intervention/Image package, and would like to allow user to upload photos from an iPhone where the photos will be larger than 2MB. When I tried to submit the photo I got an nginx error saying the photo was too large. I understand that I may have to modify the php.ini file to change max_upload_size, since even though I plan on resizing the image before I save it, I assume the photo still has to upload before I can resize it, but is there a good way to do this so that I can make the same change on the Forge and Homestead machines at the same time? Is there another way to do this that is better?
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
已采纳
Laravel:如何使用Homestead和Forge上传大图像
收起
- 写回答
- 好问题 0 提建议
- 关注问题
- 微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
duane9322 2015-01-01 05:00关注There is a recent upgrade to Forge. If you go to Server -> Meta - there is now a field to change "Max Field Upload Size".
The default is 2 - but you can change it anything.
No need to make any further server config changes - Forge does it all for you.
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫点击复制链接分享评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2019-03-13 09:12回答 2 已采纳 Update: as other answers stated, i did not notice it, you will need to create the users table, bef
- 2014-12-02 16:57回答 1 已采纳 On Windows use homestead.bat init instead of homestead init.
- 2014-09-17 10:40回答 1 已采纳 As stated above in the comments, you may have lost a file in your vendors directory by mistake. Wh
- 2021-01-30 10:07使用PHP Laravel的信号量演示CI / CD管道示例应用程序和CI / CD管道显示了如何在Semaphore 2.0上运行PHP Laravel项目。本地项目设置要在本地设置项目,根据,您的本地环境需要满足常见的Laravel开发要求。 我们建议...
- 2015-06-22 13:22回答 1 已采纳 I assume you already install VirtualBox or VMWare. After downloading Homestead from Git, you need
- 2016-08-10 05:16回答 3 已采纳 The issue was that my orders table had some entries of products that were deleted from the product
- 2016-08-27 00:26回答 1 已采纳 Because bcrypt function call is slow. Usually it takes around 50ms for one operation(depending on
- 2023-09-18 15:33YxmtAi的博客 通过使用Homestead,你可以快速搭建和配置Laravel开发环境,而无需手动安装和配置各种软件和依赖项。---cpus: 1keys:folders:sites:databases:features:在这个示例配置中,我们设置了Homestead虚拟机的IP地址为192....
- 2017-01-10 00:15回答 1 已采纳 I found that there was an exception being thrown on dns_get_record (called in active_url validatio
- 2015-01-23 16:33回答 3 已采纳 You can install it globally on the system using. composer global require phpunit/phpunit Howeve
- 2016-12-25 12:27回答 1 已采纳 Your application is running on the IP provided in Homestead.yaml so when localhost is relative to
- 2024-07-30 19:402402_85758349的博客 而Laravel Homestead,作为Laravel官方推荐的本地开发环境,更是以其便捷性、一致性和高效性,成为PHP开发者的首选。通过本文的指南,你应该能够快速搭建起自己的Homestead开发环境,享受Laravel开发的乐趣。
- 2021-05-29 19:44并非如此, Firestead基本上使用所有从 Homestead 生成的文件并将它们全部移动到一个文件夹中,因此它不会污染您的项目存储库。 如何? 1.添加Laravel Homestead Box vagrant box add laravel/homestead 2.克隆...
- 2022-02-21 18:23季__末的博客 HomesteadHomestead是什么安装1.打开Git Bash 进入E:\HashiCorp\Vagrant2.1 添加Homestead Vagrant Box 到 Vagrant (无本地box文件)2.2 homestead Vagrant Box 到 Vagrant (有...克隆 Laravel Homestead 仓库到 D:/v
- 2020-12-17 03:18第1种呢,Windows系统和mac系统,都可以支持,第2种的专门就是为mac系统的用户所提供的,总体感觉两种环境都非常非常好用,今天我们就着重说一下第1种环境的搭建。 homestead环境for windows Laravel 致力于让整个 ...
- 2021-05-20 17:46基于Homestead设置脚本的Laravel项目的AMI。 不要在生产中使用; 创建此AMI的目的是与提供程序一起使用,以在CI环境中运行测试,这可能是不安全的。 用法 只需在Vagrant AWS的配置中指定AMI ami-0f743235 。 现有...
- 2021-02-06 08:225. 其他辅助文件:如README.md,用于解释如何使用和定制这个自定义的Homestead环境。 总的来说,"homestead-custom"项目是为了满足开发者对Laravel Homestead的个性化需求,通过编写和使用自定义的Shell脚本,让...
- 2021-02-06 04:19"宅基地改良" 可能指的是对 Laravel Homestead 进行了一系列优化和调整,以简化设置和使用流程。"查看快速入门教程的完整说明" 提示我们这个改进版本提供了一份详尽的指南,帮助开发者快速理解和部署这个环境。 **...
- 2021-05-16 08:11我们使用Mac进行开发,但是鉴于Docker的可移植性,我们希望启用此产品以允许在MacOS,Linux和Windows中的每一个使用。 Porter是使用开发的。 欢迎捐款。 我们是一家小公司,所以如果您的问题或请求需要稍等,请...
- 2021-07-05 13:51Laravel 试图通过简化大多数 Web 项目中使用的常见任务(例如身份验证、路由、会话和缓存)来减轻开发过程中的痛苦。 Laravel 的目标是在不牺牲应用程序功能的情况下使开发过程对开发人员来说是一种愉快的过程。 ...
- 没有解决我的问题, 去提问