[英]How to put an image file to input[file] from database using php
我应该如何将图像放入<input type="file">
其中图像来自我的数据库(实际上,图像名称只写入数据库,图像存储在我的文件夹中),就像一个value=""
in另一种输入类型,但<input type="file" value="<?php echo $imagefileerwerewr; ?>">
不能保留图像文件。
There is not a way that you can just put you image inside an file
input and you can update image.没有一种方法可以将图像放入file
输入中,然后更新图像。 I would suggest you that you use both img
tag and input
tag to archieve this.我建议你同时使用img
标签和input
标签来存档。 You can use img
tag to show the current image and also you can use input
to let the users to update another image if they want.您可以使用img
标签来显示当前图像,也可以使用input
让用户根据需要更新另一个图像。
I would suggest you to use dropzone it has some great features and would be easier for you to manage all this我建议您使用dropzone它具有一些很棒的功能,并且您可以更轻松地管理所有这些
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.