interface BlobStoreStoreOptions {
    actionIfInvalid?: ActionIfInvalidAction;
    pathPrefix?: string;
}

Properties

actionIfInvalid?: ActionIfInvalidAction

If the path is missing or invalid in the blob, how should we create a new path? Subclasses may define their own methods, but the following are supported by default:

  • Undefined or an emtpy string: Reject the blob
  • "ignore": Attempt to store it anyway (but this may fail)
  • "prefixPath": Use the default prefix for the BlobStore and get the unique portion from the URL. The original path is stored in the metadata
  • "prefixUuid": Use the default prefix for the BlobStore and get the unique portion from a generated UUID. The original path is stored in the metadata
pathPrefix?: string

The expected prefix for URIs that are stored. This may be used to test if a MediaBlob is valid and used to create a new path if "prefixPath" or "prefixUuid" is set for actionIfInvalid.