1.0.2 • Published 9 months ago

nestfileupload v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Install npm i nestfileupload

Usage

Add the module to your application

imports: [ ConfigModule.forRoot({ envFilePath: .env.dev, }), FileuploadModule.forRootAsync({

  config: async (config: ConfigService) => ({
    config: '',
  }),
}),

],

example

import { FileuploadService } from 'nestfileupload';

async uploadFile( file: Express.Multer.File): Promise { const { originalname } = file; const bucketS3 = 'your bucket name'; return await this.fileuploadService.uploadFile( file.buffer, bucketS3, originalname, ); // return await this.fileuploadService.IsUsingSword() }