DEV Community

Daniel Benedek
Daniel Benedek

Posted on

8

Unexpected end of form when sending form data with Postman- Multer

Liquid syntax error: Unknown tag 'endraw'

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (2)

Collapse
 
jacksonkasi profile image
Jackson Kasi
const config = {
      headers: {
        "Content-Type": "multipart/form-data",
      },
    };

const res = await axios.post("/update-user-profile", data, config);
Enter fullscreen mode Exit fullscreen mode

for postman

try to add this content type

    "Content-Type": "multipart/form-data",
Enter fullscreen mode Exit fullscreen mode
Collapse
 
tanya1705 profile image
Tanya Kumari

I am getting the exact error. Have you sorted it?

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more