UNPKG

upcloud

Version:

A powerful and user friendly npm package for smooth file management and uploads with Cloudinary that integrates Multer to process incoming file requests.

14 lines (11 loc) 624 B
import stream from 'stream'; interface UploadResult { public_id: string; secure_url: string; [k: string]: any; } declare function uploadFromPath(localPath: string, opts?: Record<string, any>): Promise<UploadResult>; declare function uploadBuffer(buffer: Buffer, opts?: Record<string, any>): Promise<UploadResult>; declare function uploadStream(readable: stream.Readable, opts?: Record<string, any>): Promise<UploadResult>; declare function uploadLarge(localPath: string, opts?: Record<string, any>): Promise<UploadResult>; export { type UploadResult, uploadBuffer, uploadFromPath, uploadLarge, uploadStream };