CFFILE Tag w/ Validation
Posted on 2007-07-23
Hello, I have just implemented a CFFILE tag which works fine as long as the pdf document is uploaded. However, when someone attaches a doc or xls it still moves to the next page, but, it gives an error that the document is not the right type (pdf) all the way at the bottom of the page (hardly noticeable / understandable to many users).
Is there a way before I submit the file or during the form action page a validation mechanism occurs that the file is NOT a pdf and throws an error on the first page saying that it's not a pdf, thus stopping the confusion?