We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have component
<file-upload class="page__file" post-action="http://localhost:3000/api/vacancies/upload" v-model="resume" ref="resume" :multiple="true" :maximum="2" :thread="2" :size="1024 * 1024 * 1024" > Загрузить резюме </file-upload> <button @click.prevent="uploadFiles">Upload</button> ... methods: { uploadFiles() { this.$refs.resume.active = true; } }
I select two files, after click button. But I have two call file upload handler on server.
@Post('upload') @UseInterceptors(AnyFilesInterceptor()) uploadFiles( @UploadedFiles() files: Array<Express.Multer.File> ) { console.log(files); }
Result:
[ { fieldname: 'file', originalname: '456.txt', encoding: '7bit', mimetype: 'text/plain', buffer: <Buffer >, size: 0 } ] [ { fieldname: 'file', originalname: '123.txt', encoding: '7bit', mimetype: 'text/plain', buffer: <Buffer 48 65 6c 6c 6f 20 57 6f 72 6c 64>, size: 11 } ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have component
I select two files, after click button. But I have two call file upload handler on server.
Result:
The text was updated successfully, but these errors were encountered: