added support for manually picking file to upload or defining the REST service endpoint