To validate file upload in JavaScript by what a photo shows, check three things after the upload: whether there is a page in the photo, whether it has text, and whether it is the right document. Two Filestack features do the checking, Document Detection finds the page and OCR reads the words on it, so […] The post Validate File Upload in JavaScript and Reject Photos That Are Not Documents appeared first on Filestack Blog .