UNPKG

gypsum

Version:

Simple and easy lightweight typescript server side framework on Node.js.

15 lines (14 loc) 626 B
import * as Multer from 'multer'; import { Model } from "../models"; import { Context } from "../context"; export declare class File extends Model { origin: string; uploader: Multer.Instance; private multerUploadPaths(ctx, type, options); uploadOne(body: any, ctx?: Context): Promise<{}>; uploadMany(body: any, ctx?: Context): Promise<{}>; dataURLUploadOne(body: any, ctx?: Context): Promise<{}>; dataURLUploadMany(body: any, ctx?: Context): Promise<{}>; removeOne(filePath: string, ctx?: Context): Promise<{}>; removeMany(filesPaths: string[], ctx?: Context): Promise<{}>; }