Fix upload handler.