added api method to upload file to s3