Improve folder upload error handling.