Solve the issue of uploading files with spaces.

re #6176