changed upload to S3 so that it deletes the local file once it has been uploaded