ark::catalog::UploadAttachmentConfig
Defined in header “ark/catalog/attachments.hh”.
A configuration structure meant to setup how an attachment should be uploaded to the catalog.
Variables
-
std::string name
The ’name’ of the attachment this is essentially a filename, and is considered to be the unique part of the attachment. This is a path component, and should not have spaces in it. -
std::string type
The ’type’ of the attachment, such as ‘debuglog’, or ‘video’. Expected to be a path component, and should not have spaces in it. -
core::Guid organization_identifier
The organization ID to register this with. -
std::optional< core::Guid > attachment_artifact_identifier
If set, the data will be associated (as an external attachment) to this artifact. -
std::string attachment_content_type
The content-type (useful for when downloading this, as an image, text, etc). Leave empty and the system will infer the type from the destination URL (essentially, the name). -
std::string human_readable_name
A human readable name (free-form string).