简体   繁体   English

在Laravel中上传图像时获取空白页

[英]Getting blank page when uploading an image in Laravel

I have a question that concerns an image upload in one of my applications. 我有一个关于在我的应用程序中上传图片的问题。

I have the issue that if I want to upload a picture that I have exported from iPhoto, the image is not uploaded and I only get a blank page instead. 我有一个问题,如果我要上传从iPhoto导出的图片,则不会上传图片,而只能得到空白页。 Sometimes I also receive a 500 error in the console. 有时我还会在控制台中收到500错误。

The awkward thing about this is that images taken from the web and screenshots for example work perfectly. 尴尬的是,例如从网络上拍摄的图像和屏幕截图可以完美地工作。

Does anyone have an idea on this topic? 有人对此主题有想法吗? Would really appreciate some thoughts here or ways in PHP to fix something like that. 非常感谢这里的一些想法或PHP解决此类问题的方法。

Could this be a max file size issue, or even a memory issue. 这可能是最大文件大小问题,甚至是内存问题。

I think you might get a blank screen also if there is a PHP error, with debugging turned off. 我认为,如果发生PHP错误,并且调试已关闭,您也可能会出现黑屏。

Check your script execution time, PHP memory, and max file upload in your php.ini 在php.ini中检查脚本执行时间,PHP内存和最大文件上传

If smaller images work I suspect is an issue with larger photos. 如果较小的图像有效,我怀疑较大的照片是一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM