在minio-client.controller中新建一个uploadMinio方法,使用@nestjs/swagger中相关的API进行接口描述,因为是上传文件,所以这里需要设置@ApiConsumes('multipart/form-data')以及@UseInterceptors(FileInterceptor('file')),后面会给出完整的代码,这里我们看到使用了minioService调用了upload方法,将文件作为参数进行了传旨 @Pos...
Add a description, image, and links to the nestjs-minio topic page so that developers can more easily learn about it. Curate this topic Add this topic to your repo To associate your repository with the nestjs-minio topic, visit your repo's landing page and select "manage topics." ...
npm i minio-nestjs#oryarn add minio-nestjs Module setup Register module synchronously : import{Module}from'@nestjs/common';import{MinioModule}from'minio-nestjs';@Module({imports:[MinioModule.register({endPoint:'127.0.0.1',port:9000,useSSL:false,accessKey:'biomousavi',secretKey:'yourStrongPassw...
$ npm i --save nestjs-minio Initialize MinIO Client You need five items in order to connect to MinIO object storage server. ParamsDescription endPoint URL to object storage service. port TCP/IP port number. This input is optional. Default value set to 80 for HTTP and 443 for HTTPs. acces...
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有...
[![npm version](https://img.shields.io/npm/v/@rxap/nest-minio?style=flat-square)](https://www.npmjs.com/package/@rxap/nest-minio) [![commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commiti
rajabzadeh1986/nestjs-minioPublic NotificationsYou must be signed in to change notification settings Fork0 Star0 master BranchesTags Code Nest Minio Module This package developed to handle minio requests in nestjs application as easy as possible. ...
Your favorite object storage with nestjs. Contribute to NestCrafts/nestjs-minio development by creating an account on GitHub.
I added a segment of the repository to thepackage.jsonfile for better linked to the npm site
import { Module } from '@nestjs/common'; import { NestMinioClientController } from './nest-minio-client.controller'; import { NestMinioModule } from '../nest-minio.module'; @Module({ controllers: [NestMinioClientController], imports: [ NestMinioModule.register({ endPoint: 'play.min.io'...