-
Notifications
You must be signed in to change notification settings - Fork 732
How to upload a File? #1420
Unanswered
RicardoRien
asked this question in
Q&A
How to upload a File?
#1420
-
I'm using NestJS con GraphQL, trying to upload a couple of .xlsx but Any of the routes I gave works. What I'm doing wrong?
The resolver looks like this:
@Mutation(() => SuccessReponse)
@UseInterceptors(FilesInterceptor('files'))
createMultipleUsersWithXlsx(@Args('files', {
type: () => [GraphQLUpload]
}) files: Express.Multer.File[]) {
return this.usersService.createMultipleUsersWithXlsx(files);
}
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment