fix error uploading attachment with slashes in name via REST. Add virtual field _downloadurl to RetrieveDocument