noamway Posted October 14, 2005 Share Posted October 14, 2005 Hello all,I let the users to upload files and not only images.I want before the file upload to check the size of the file.I now how to do that with images but not with files.Does any one have an idea?Thanks Link to comment Share on other sites More sharing options...
John McKean Posted October 15, 2005 Share Posted October 15, 2005 In my limited experience, the HTML upload goes to a tmp directory on the server and the CGI script can then look at the size. (As long as it's smaller than MAX_FILE_SIZE.)I'm not aware of anything that can detect the size before an upload.If there is, I'd love to hear about it! Link to comment Share on other sites More sharing options...
Webworldx Posted October 15, 2005 Share Posted October 15, 2005 If they allow ActiveX, you could try the FileSystemObject, which i think getFile().size would do it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now