Fix s3 media uploads