Fixed "get file-size" bug for file handles in `upload_file()` (get file-size *after* converting filepaths and file-handles, and get file-size using `os.fstat(fh.fileno()).st_size`.