make file input required & test RESTful service