azure-blobv2
Version:
Microsoft Azure storage client library for Node js easy to use
24 lines (23 loc) • 746 B
TypeScript
import { Metadata } from '@azure/storage-blob';
export declare const upload: ({ containerName, fileName, filePath, useConnectionString, connectionString, accountName, metaData, }: {
containerName: string;
fileName?: string | undefined;
filePath: string;
useConnectionString: boolean;
connectionString?: string | undefined;
accountName: string;
metaData?: Metadata | undefined;
}) => Promise<{
data: {
mime: import("stream-mmmagic").MimeType;
url: string;
};
success: boolean;
message: string;
response: import("@azure/storage-blob").BlockBlobUploadResponse;
} | {
success: boolean;
message: string;
data?: undefined;
response?: undefined;
}>;