Skip to content

StorageAdapterContextProvider

StorageAdapterContextProvider(props): Element

Defined in: packages/react/src/context/StorageAdapterContext.tsx:26

Provides the ClientUploadMap to all components under the admin layout.

Pass one entry per registered storage adapter keyed by its name slug. MediaUploadDropzone reads the map via useStorageAdapterMap() to call the correct client-side uploadFile function for a given adapter.

The subtree needing adapter access, and the map of adapter name → uploadFile function to provide.

ClientUploadMap

ReactNode

Element

The context provider wrapping props.children.