更新图像错误 - MVC。 [英] Update Image error - MVC.
问题描述
大家好,
我在MVC应用程序中创建了一个创建视图,我有4个不同的部分,即ID1,ID2,ID3和ID4,上传相应的图像。我已经成功上传了。
现在我必须更新记录,因为我创建了一个编辑视图我正在显示来自url的图像我在哪里存储图片。现在,当我只更新该图像的HttpPostedFile中的一个Image时,我得到了值,但是在其他三个HttpPostedFile中,我得到的是 null 值。
如何解决这个问题?
谢谢
Hi All,
I have created a "Create" view in MVC application and on that I have 4 different sections, i.e., ID1, ID2, ID3 and ID4, to upload the respective images. I have uploaded successfully.
Now I have to update the records for that I have created a "Edit" view i am displaying the images from url where I am storing the Images. Now when I am updating only one Image in HttpPostedFile of that image I am getting the value, But in other three HttpPostedFile I am getting the null value.
How to resolve this issue?
Thanks
推荐答案
我建议你这样做如果你有任何问题,可以发表文章并大喊
MVC中的多个文件上传 [ ^ ]
I would recommend to follow this article and shout if you have any issues
Multiple File Upload in MVC[^]
这篇关于更新图像错误 - MVC。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!