better error feedback on upload failure