I know this is strange, but this fixed an issue I was having. I originally used `tf` as the file handle, but it uploaded an empty file. Reopening the file fixed the issue. Not sure what the problem was. I can go back and check this again, though.