Better logging of file upload errors