• Preparing search index...
  • The search index is not available
@daiso-tech/core - v0.56.0
  • @daiso-tech/core
  • FileStorage
  • withFileStoragePrefix

Function withFileStoragePrefix

  • withFileStoragePrefix(
        prefix: string,
    ): PluginFn<Partial<IFileUrlAdapter> & IFileStorageAdapter>
  • Creates a plugin that prefixes all file keys passed to a file-storage adapter.

    Every method that accepts a file key (identifier/path) will have the given prefix prepended before the call is forwarded to the underlying adapter. This includes public URL generation, signed URL generation, existence checks, streaming, metadata, and all CRUD operations.

    Parameters

    • prefix: string

      The string to prepend to every file key.

    Returns PluginFn<Partial<IFileUrlAdapter> & IFileStorageAdapter>

    A middleware plugin that wraps a file-storage adapter.

    IMPORT_PATH: "@daiso-tech/core/file-storage/plugins"

    • Defined in src/file-storage/implementations/plugins/with-file-storage-prefix/with-file-storage-prefix.ts:25

Settings

Member Visibility
@daiso-tech/core - v0.56.0
  • Loading...

Generated using TypeDoc