Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在上传文件之前计算文件大小。我没有从文件控件中获取文件路径。谁能帮我计算一下?
这个问题更难,除非:
使用其他ActiveX控件,获取文件大小,如:
Var FSO = new ActiveXObject (Scripting.FileSystemObject);
var file = fso.GetFile(fileName);
上传文件到后台,获取文件大小(效率不高)
如果你没有得到文件路径,你如何得到文件大小???