D
darrel
I have some INPUT TYPE=FILE fields on a page. There are four of them and I'd
like to validate them. They can either be empty, or need a certain filename.
This is what I am doing:
if (fileUpload_instDOC.PostedFile.FileName.length = 0 OR
lcase(right(fileUpload_instDOC.PostedFile.FileName, 3)) = "doc")
I'm checking to see if it is a word document, or empty.
The problem is the empty part. I can't get that to work. It seems to be
ignoring that completely.
-Darrel
like to validate them. They can either be empty, or need a certain filename.
This is what I am doing:
if (fileUpload_instDOC.PostedFile.FileName.length = 0 OR
lcase(right(fileUpload_instDOC.PostedFile.FileName, 3)) = "doc")
I'm checking to see if it is a word document, or empty.
The problem is the empty part. I can't get that to work. It seems to be
ignoring that completely.
-Darrel