简体   繁体   English

带删除和预览的多张图片上传 Laravel

[英]Multiple image upload with remove and preview Laravel

I searched on internet for like 3 days looking for good solution on displaying uploaded images and removing them before submit, but none of the packages didn't work on my Laravel project.我在互联网上搜索了 3 天,寻找显示上传图像并在提交前删除它们的好解决方案,但没有一个包不适用于我的 Laravel 项目。

I even tried making dynamic input file.The biggest problem was that every time user uploads file, old entries were lost in process, only files from last 'session' were stored.我什至尝试制作动态输入文件。最大的问题是每次用户上传文件时,旧条目都会丢失,只存储上次“会话”中的文件。

Does anyone know what is the best and easiest solution for this problem?有谁知道这个问题的最佳和最简单的解决方案是什么?

You can try using https://github.com/christianbayer/image-uploader您可以尝试使用https://github.com/christianbayer/image-uploader

BUT is not a Cross Browser solution.不是跨浏览器解决方案。

It works in Google Chrome, and in safari, for example, does not work.它在 Google Chrome 中有效,例如在 safari 中无效。

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

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