Comments (4)
@WoH any suggestion?
from tsoa.
Sorry, missed this so far. Btw, you can tag it as help wanted or pending feedback to avoid the bot.
Is it enough to provide this once for the entire app? I am worried the next follow up would be multer config for down to per Endpoint level.
from tsoa.
Sorry, missed this so far. Btw, you can tag it as help wanted or pending feedback to avoid the bot.
Is it enough to provide this once for the entire app? I am worried the next follow up would be multer config for down to per Endpoint level.
I think the global options we provides in RegisterRouter parameter could cover all.
from tsoa.
Hi @jackey8616,
As proposed in this pull request, you can provide your custom multer to RegisterRoutes
, and tsoa will use it for file upload management in express
and koa
templates. Providing a multer instance is optional; by default, tsoa uses the default multer instance with the default configuration (or the configuration provided in tsoa.json
).
from tsoa.
Related Issues (20)
- Can't send stream to injected error responder when using '@Security()` decorator. (Really I'm just trying to create a plain-text error) HOT 2
- Declare Auth schema without need to implement handlers HOT 2
- Make express request injectable HOT 3
- Problem with @types/express version 4.17.21 HOT 2
- Upload multiple files using @UploadedFiles() and @UploadedFile causes multer error HOT 2
- Using combination of @UploadedFile() and @UploadedFiles() decorators throws MulterError: Unexpected field HOT 3
- GenerateMetadataError: Unknown type: IndexedAccessType HOT 6
- GenerateMetadataError: Unknown type: IntrinsicKeyword HOT 3
- Routes.ts TSC Error expressAuthenticationRecasted HOT 1
- Multiple runtime dependencies for backend frameworks. HOT 1
- nullable: true and allOf HOT 1
- Support verbatimModuleSyntax (tsconfig) HOT 2
- Regression in route generation from 5.1.1 to 6.x.x: "This node kind is unknown"
- CLI cannot import tsoa-config.js in ESM project HOT 2
- Handle errors by throwing them HOT 2
- Where are the docs source code? HOT 1
- Support @title keyword annotation HOT 1
- The array [0] gets validated as the floating point number 0 HOT 1
- Merge info from multiple @Security methods into `req.user` HOT 3
- Add a minimal boilerplate repo to the docs. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsoa.