Change validFileOnly flag to be a string type, since DAS validator only checks for string types