![](/img/trans.png)
[英]how to store image or file in a folder and that path in Database using php but image or file is not coming from post functionality of html
[英]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; ?>">
不能保留圖像文件。
沒有一種方法可以將圖像放入file
輸入中,然后更新圖像。 我建議你同時使用img
標簽和input
標簽來存檔。 您可以使用img
標簽來顯示當前圖像,也可以使用input
讓用戶根據需要更新另一個圖像。
我建議您使用dropzone它具有一些很棒的功能,並且您可以更輕松地管理所有這些
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.