KB IssueASP Classic throws a type mismatch error when getting the size of a file if it is not formatted correctly.
Issue DetailsWhen using a function in ASP Classic to get the file size will give you a type mismatch error if the formatting is not correct.
Recreate IssueThe following lines will give you the type mismatch error "sometimes"
Filesize = bytes / 1024
Resolve IssueTaking the code from above, we need to add CDbl.
Filesize = CDbl(trim(bytes)) / 1024