[fix] [minor] fixes in uploading file and error handling
Merge branch 'master' of github.com:webnotes/wnframework into perpetual