improve upload file error handling
Merge branch 'master' of github.com:atk4/atk4