-
Notifications
You must be signed in to change notification settings - Fork 1k
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
req.file returning Undefined on frontend, but with Insomnia returns correctly #1237
Comments
try to send without the data field: const result = await apiDocument.post('/upload', formData, { and verify if the api was called |
@GrazielaSousa Have you found the fix,i am me facing the same issue |
Hello, the file upload.js I put together the code routes, and worked, for some reason the code being separate it did not work properly |
do the |
Hello, I’m having trouble getting a client-side post to work, it turns out that with Insomnia, the file correctly goes up to the directory and returns all the file information. The code is currently like this
upload.js
routes
Insomnia
When sending the file from the front:
Frontend
The text was updated successfully, but these errors were encountered: