如何使用dropzone.js上传图像时限制图像大小? [英] How to restrict image size while uploading image using dropzone.js?
本文介绍了如何使用dropzone.js上传图像时限制图像大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的ASP.NET应用程序中使用dropzone.js来上传图像,但我不知道在哪里检查图像文件大小并提醒用户限制某些最大值。图像上传时限制。
解决方案
这是一个例子 - Dropzone.js为图像上传定义MinWidth和MinHeight [ ^ ]。
I have used dropzone.js in my ASP.NET application to upload image but I don't know where to check for image file size and alert user to restrict on certain max. limit while image upload.
解决方案
Here is an example - Dropzone.js defining MinWidth and MinHeight for image upload[^].
这篇关于如何使用dropzone.js上传图像时限制图像大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文