Typo in file upload doc
Improve error handling