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
We do provide two way of accessing file uploads today via req.param(name) or req.file(name).
req.param(name)
req.file(name)
We want to be more explicit so the req.param will stop working for file uploads.
req.param
req.param(name).toUpload() becomes req.file(name)
req.param(name).toUpload()
req.param(name).to(Upload.class) becomes req.file(name)
req.param(name).to(Upload.class)
req.param(name).toList(Upload.class) becomes req.files(name)
req.param(name).toList(Upload.class)
req.files(name)
req.param(name).toOptional(Upload.class) becomes req.ifFile(name)
req.param(name).toOptional(Upload.class)
req.ifFile(name)
Please keep in mind the req.file and req.files methods already exists.
req.file
req.files
This is a break change that affect all script routes that were using .param to retrieve file uploads. MVC routes will keep working (won't break)
.param
The text was updated successfully, but these errors were encountered:
favor req.file(name) over req.param(name).toUpload fix #819
7737225
Optional Upload with malformed file multipart part fix #803
833efa6
bdb4177
cbec59d
No branches or pull requests
We do provide two way of accessing file uploads today via
req.param(name)
orreq.file(name)
.We want to be more explicit so the
req.param
will stop working for file uploads.req.param(name).toUpload()
becomesreq.file(name)
req.param(name).to(Upload.class)
becomesreq.file(name)
req.param(name).toList(Upload.class)
becomesreq.files(name)
req.param(name).toOptional(Upload.class)
becomesreq.ifFile(name)
Please keep in mind the
req.file
andreq.files
methods already exists.This is a break change that affect all script routes that were using
.param
to retrieve file uploads. MVC routes will keep working (won't break)The text was updated successfully, but these errors were encountered: