本文介绍了使用javascript获取文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用文件类型输入和ASP上传组件将文件从客户端保存到服务器.如果用户键入了不存在的文件名或路径,则上载组件仍会在目标位置上创建一个文件,但该文件为空.如何确定保存在目标位置上的文件的大小?

I am using a file type input and an asp upload component to save the file from the client to the server. If the user types the file name or path that doesn''t exist, the upload component still creates a file on the destination but the file is empty. How can I determine the size of the file saved on the destination?

推荐答案


这篇关于使用javascript获取文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 07:21
查看更多