Well, I posted this back in March and didn't have much success. So I thought I would post it again to see if anyone has any ideas.
I have a file uploader on my site which has been working fine for quite some time now. I want to validate the file size before performing the full upload and I don't think I want to use any ActiveX or signed scripts to gain access to the visitors file system, although six months later, I'm open for new suggestions. I have tested the Request.BinaryRead and Request.TotalBytes properties which work fine and can be good tools to validate file size, however they are both expensive operations. I think the entire form contents need to be sent to the server before you can get the value of either of these properties, so a file upload of 5MB would take a few minutes for either of those properties to return a value.
Any ideas on how to validate file size inexpensively before executing the file upload. I've looked at all the sites, xdrive.com, etc.. and can't find a solution.
TW
I have a file uploader on my site which has been working fine for quite some time now. I want to validate the file size before performing the full upload and I don't think I want to use any ActiveX or signed scripts to gain access to the visitors file system, although six months later, I'm open for new suggestions. I have tested the Request.BinaryRead and Request.TotalBytes properties which work fine and can be good tools to validate file size, however they are both expensive operations. I think the entire form contents need to be sent to the server before you can get the value of either of these properties, so a file upload of 5MB would take a few minutes for either of those properties to return a value.
Any ideas on how to validate file size inexpensively before executing the file upload. I've looked at all the sites, xdrive.com, etc.. and can't find a solution.
TW