Upload file to HD or to S3 repository