Added a validation check to make sure that a file is being read for the
read-chunk endpoint.