Hello, in order to handle file upload in Hono, I noticed we can make use of
parseBody
parseBody
since it handle multipart/form-data.
So this mean I can just write :
const file= body['foo'] // foo is value of name attribute to identify fileconst title = body['title'] // assuming that in formData, we have an input field of text with name of title
const file= body['foo'] // foo is value of name attribute to identify fileconst title = body['title'] // assuming that in formData, we have an input field of text with name of title
Can someone clarify the above lines of code pls.
For the file, upon receiving is, their is no further processing, I can just store it somewhere in my disk?