Changed controller to upload files to S3