Updated async_upload, sync_upload and replace with CurlFile call to avoid warning

I was getting a deprecation warning about using '@' when referencing a file when uploading, so I updated to use CurlFile() to stop this.