asp.net file size

后端 未结 4 1220
一个人的身影
一个人的身影 2021-01-24 07:51

I want to get the file size before uploading to server. I used following code

Dim fileDetails As IO.FileInfo
fileDetails = My.Computer.FileSystem.GetFileInfo(fil         


        
4条回答
  •  自闭症患者
    2021-01-24 08:17

    As far as i know there is no way to detect the file size serverside BEFORE the upload

    The way to do this if you use a flash uploader such as SWFupload or uploadify and you can limit the file size and extension from swf upload or uploadify ( i recomend using uploadify )

提交回复
热议问题