Open imamkhaira opened 4 years ago
@imamkhaira Sounds like a great idea! Definitely, love to add that feature. Would you like to create a PR?
sure, I'll start adding changes and make a pull request
Awesome! 😃
Greate news,
Thanks for the efforts, any timeline expected for this upgrade?
Regards,
@imamkhaira Any updates?
Would be interested as well :)
any update
Any update on this? @jeffminsungkim @imamkhaira
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> {}
That looks good! Just waiting on the PR merge!
SITREP ?
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 😁