You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation at https://h3.unjs.io/utils/request#readmultipartformdataevent, the object should consist of key-value pairs from FormData. However, I received this response: { name: 'NAME', data: <Buffer > }. When I attempted to add file upload, it crashed. I previously used formidable to parse the file, but encountered issues with the callback not working. Therefore, I attempted to use readMultipartFormData to handle the FormData, but still encountered errors.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Ray0907
changed the title
readMultipartFormData return buffer and not work if the form contain file
The readMultipartFormData function returns a buffer and does not function properly if the form contains a file.
Mar 11, 2024
Environment
Reproduction
As described subsequently
Describe the bug
According to the documentation at https://h3.unjs.io/utils/request#readmultipartformdataevent, the object should consist of key-value pairs from FormData. However, I received this response:
{ name: 'NAME', data: <Buffer > }
. When I attempted to add file upload, it crashed. I previously used formidable to parse the file, but encountered issues with the callback not working. Therefore, I attempted to use readMultipartFormData to handle the FormData, but still encountered errors.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: