-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
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
file metadata info while upload #673
Labels
Projects
Comments
Not an answer, just prettifying the code 😄 @ValidateMultipartFormDataBody({
files: {
photo: { required: true, saveTo: 'photos' }
}
})
uploadPhoto(ctx: Context) {
console.log(ctx.request.body)
const { path } = ctx.request.body.files.photo;
} |
Thks @anonimusprogramus It is currently not possible to access the original
For the moment, yes. |
This was referenced May 27, 2020
Feature added in v2.0. It will be released between June and August. |
Issue tracking
automation
moved this from Work In Progress
to Done / Closed This Release
May 29, 2020
Merged
Thanks a lot for your work.
Thanks
Suman
…On Fri, 29 May, 2020, 12:57 PM Loïc Poullain, ***@***.***> wrote:
Feature added in v2.0. It will be released between June and August.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#673 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEZL26DO6E7IJVI7J6I4U3RT5PWXANCNFSM4MEDCZ3Q>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could someone please help with this.
how do I get the original file name, file size, mime type while uploading a file?
I tried this
@ValidateMultipartFormDataBody({
files: {
photo: { required: true, saveTo: 'photos' }
}
})
uploadPhoto(ctx: Context) {
console.log(ctx.request.body)
const { path } = ctx.request.body.files.photo;
}
I only get the path here. Does it mean, I have send all other meta info through non-binary fields?
Help is much appreciated.
Thanks
Suman
The text was updated successfully, but these errors were encountered: