开发者

image name and content type of the image

how to get the开发者_如何学JAVA image name and content type in mvc application i am using the input type file control of Html on my page .please help me with useful answers.

Thanks, ritz


Have a look at http://mikehadlow.blogspot.com/2008/03/file-uploads-with-mvc-framework.html. I presume that you are trying to upload an image in ASP.NET MVC. The linked article should get you most of the way there. The image content type isn't immediately available, but just assume it to be image/jpeg or image/png depending on the extension of the file name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜