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
Swagger doesn't show a file input for MultipartFile
Swagger should display a file upload input field
import { PathParams} from "@tsed/platform-params"; import { Post, Summary } from "@tsed/schema"; import { Controller } from "@tsed/di"; import { InventoryModel } from "../../models/model.inventory"; import { MultipartFile, PlatformMulterFile } from "@tsed/common"; @Controller("/inventory") export class Inventory { constructor(private readonly calendarService: CalendarService) {} @Post("/:hostname") @Summary("Upload a file") async upload(@PathParams("hostname") hostname: string, @MultipartFile("file") file: PlatformMulterFile) { console.log(hostname, file); } }
No response
Windows
Node v20.9.0
v7.74.1
The text was updated successfully, but these errors were encountered:
If you appreciated the support, know that it is free and is carried out on personal time ;)
A support, even a little bit makes a difference for me and continues to bring you answers!
Sorry, something went wrong.
Romakita
No branches or pull requests
Describe the bug
Swagger doesn't show a file input for MultipartFile
To Reproduce
Expected behavior
Swagger should display a file upload input field
Code snippets
Repository URL example
No response
OS
Windows
Node version
Node v20.9.0
Library version
v7.74.1
Additional context
The text was updated successfully, but these errors were encountered: