我想上传一个来自Reactjs的图像文件,它位于我的项目文件夹("../assets.cover.png")中,不使用输入,当我尝试import cover from "../assets.cover.png"时,它给了我文件路径,但我需要的是文件元数据来上传它。
基本上,我的最终目的是上传该图像文件,并计算用户上
我想将图像文件返回到文本框中,因为type="file"图像返回了,但是RequiredAttribute不允许添加,因为图像显示为空,如何获得@Html.TextBoxFor(model => model.Image, new {value=Model.Image, type = "File" })
@Html.Validation