jeffminsungkim / nestjs-multer-extended

💪 Extended MulterModule for NestJS with flexible S3 upload and helpful features
MIT License
203 stars 47 forks source link

Support for multiple file upload #165

Open imamkhaira opened 4 years ago

imamkhaira commented 4 years ago

Hi, I noticed that this module supports only one file upload at a time. Is there any plan to support uploading multiple/array of files? (using @UploadedFiles decorator). Thank you 😁

jeffminsungkim commented 4 years ago

@imamkhaira Sounds like a great idea! Definitely, love to add that feature. Would you like to create a PR?

imamkhaira commented 4 years ago

sure, I'll start adding changes and make a pull request

jeffminsungkim commented 4 years ago

Awesome! 😃

mhhonline commented 4 years ago

Greate news,

Thanks for the efforts, any timeline expected for this upgrade?

Regards,

jeffminsungkim commented 4 years ago

@imamkhaira Any updates?

FlxEd commented 3 years ago

Would be interested as well :)

nomanbiniqbal commented 3 years ago

any update

jnovak-SM2Dev commented 2 years ago

Any update on this? @jeffminsungkim @imamkhaira

jnovak-SM2Dev commented 2 years ago

I added a pull request for this (will need updated documentation) #518. It's based off FileFieldsInterceptor

You would use like:

@UseInterceptors(
    AmazonS3FilesInterceptor(
        [
            { name: "logo", maxCount: 1 },
            { name: "header", maxCount: 1 },
        ],
        {
            randomFilename: true,
        }
    )
)
async create(
    @Body() createUserDto: CreateUserDto,
    @UploadedFiles() files: { logo; header },
  ): Promise<User> {}
leonardoad commented 2 years ago

That looks good! Just waiting on the PR merge!

chihabhajji commented 1 year ago

SITREP ?