-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I have a form to upload two images with different names say 'avatar' and 'background'
When i use
GCloudStorageFileInterceptor('background', undefined, {
prefix: 'background',
predefinedAcl: 'private'
}),
GCloudStorageFileInterceptor('avatar', undefined, {
prefix: 'avatar',
predefinedAcl: 'private'
}),
I get Unexpected field
error
@nestjs/platform-express
supports has FileFieldsInterceptor
which can take multiple fields
@UseInterceptors(FileFieldsInterceptor([
{ name: 'avatar', maxCount: 1 },
{ name: 'background', maxCount: 1 },
]))
Is there a way to do this with @aginix/nestjs-gcloud-storage
?
Metadata
Metadata
Assignees
Labels
No labels