fix:runtime crash when upload file to Mac/Win32
Merge pull request #8100 from cocoscodeide/v3

fix:runtime crash when upload file to Mac/Win32