@nocobase/plugin-file-manager
Version:
Provides files storage services with files collection template and attachment field.
18 lines (17 loc) • 976 B
TypeScript
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
export declare function getFilename(req: any, file: any, cb: any): void;
export declare const cloudFilenameGetter: (storage: any) => (req: any, file: any, cb: any) => void;
export declare const diskFilenameGetter: (storage: any) => (req: any, file: any, cb: any) => void;
export declare function getFileKey(record: any): any;
export declare function normalizeStorageSubPath(subPath?: unknown): string;
export declare function resolveStoragePath(storagePath?: unknown, subPath?: unknown): string;
export declare function ensureUrlEncoded(value: any): any;
export declare function encodeURL(url: any): any;
export declare function normalizeDocumentRoot(documentRoot?: string): string;