Forest Admin - API reference
    Preparing search index...
    • Loads the fileUploads options of the standalone server from a module on disk.

      A storage backend is an object with methods, so it cannot travel through an environment variable like every other standalone option. Without this, file uploads would be reachable only by embedding the server in an agent or by writing a custom entry point.

      The module default-exports the options, or a function returning them:

      module.exports = { storage: myS3Storage, maxBytes: 50 * 1024 * 1024 };

      Parameters

      • OptionalmodulePath: string
      • __namedParameters: Partial<McpEnvLabels> = {}

      Returns Promise<FileUploadsOptions>