Making changes to enable file download with aws-sdk