and sometimes i got this error “Form param file, file load error: PPERM: insecure file access outside working directory” from the postman’s console
i’ve done 1. add this code in my express js code
app.use(express.json());
or the body-parser package
i’ve also tried using another api url made with golang (the api was working fine in my friend’s computer) but still doesn’t work in mine.
2. switch this setting and change the directory.
the request body from postman form data file is still undefined
i just didn’t realize that the key from form data was not matched.
it seems like the file request body on console postman will be always undefined. So the file is sent to the BE even though the file on postman’s console is undefined.
i’m so sorry for making this topic, it was a human error.