"doctype" is only used in upload, not update (and a missing value should not produce an error).