More sanity in docmap uploading