Added upload to s3 functionality