Remove the path from uploaded files that are sent with path information.