#166 - Improved file upload error handling