有没有其他方法可以在上传前检查文件的大小?要求是如果文件超过限制,则不得提交表单。如果不是,我必须使用表单进行普通上传,而不必使用 Flash 将文件完全上传到服务器。
最佳答案
Is there any other way that I can just check the size of a file before upload?
不在 JavaScript 中,文件大小为 not in the DOM .
关于file-upload - 上传前检查文件大小的其他方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2190096/