Upload document cleaning of upload input