passing filename and content type into the inputResource method

Passing the file name and content type into inputResource so that they can be used to determine the content type when sending it off to S3.