开发者

How can I upload files only with type image in asp.net mvc2

开发者 https://www.devze.com 2023-01-18 15:24 出处:网络
I want to upload Images only with file upload in asp.net mvc2 and show validation fo开发者_StackOverflowr the user in client side using jquery or mvc validation and server side also.

I want to upload Images only with file upload in asp.net mvc2 and show validation fo开发者_StackOverflowr the user in client side using jquery or mvc validation and server side also. any one can help?

Thanks.


You cannot upload an file without posting to the server. You could also take a look at the jquery form plugin which allows you to AJAXify a form and supports file uploads as well (behind the scenes it uses a hidden iframe because files cannot be uploaded using AJAX).

0

精彩评论

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