Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to upload a File? #1420

Unanswered
RicardoRien asked this question in Q&A
Discussion options

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?

image

The resolver looks like this:

 @Mutation(() => SuccessReponse)
 @UseInterceptors(FilesInterceptor('files'))
 createMultipleUsersWithXlsx(@Args('files', { 
 type: () => [GraphQLUpload] 
 }) files: Express.Multer.File[]) {
 return this.usersService.createMultipleUsersWithXlsx(files);
 }
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /