Fix a bug that cannot upload files.