如何在上传到服务器之前检查图像的高度和宽度? [英] how to check image height and width before upload to the server?

查看:147
本文介绍了如何在上传到服务器之前检查图像的高度和宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i必须检查图像上传的spme验证,就像图像的高度和宽度是150 * 150而且只有用户可以上传将图像映射到服务器,否则它应显示上传150 * 150大小文件的消息。



我正在使用asp.net / mvc 4框架。如果有任何解决方案,请告诉我。

解决方案

尝试



如何到验证上传文件-在-ASP净MVC [ ^ ]



验证图像尺寸(尺寸) [ ^ ]


< blockquote>参考:

在ASP中播放图像。 NET [ ^ ]

这可能会有所帮助。


Hi all ,

i have to check spme validation on image upload like if the height and width of an image is 150*150 than and only user can upload the image to the server otherwise it should show a message that upload file with 150*150 size.

i am working on asp.net / mvc 4 framework. please let me know if there is any solution.

解决方案

Try

how-to-validate-uploaded-file-in-asp-net-mvc[^]

Validate Image Size(Dimension)[^]


Refer:
Playing with Images in ASP.NET[^]
This may help.


这篇关于如何在上传到服务器之前检查图像的高度和宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆