0👍
Probably a typo but you have a call to an API:
carApi.uploadattachmnets({photo: fs.createReadStream(d)})
which is different to the one you are importing:
import reqApi from '../../api/something'
If not the above I’d assume this is going to be a CORS issue if Postman is already able to send files and receive the correct response from the endpoint. Without more info I’d recommend looking at: https://www.html5rocks.com/en/tutorials/cors/#toc-making-a-cors-request
For a more specific response you’d need to post the API code so we can review how you are sending the file.
Source:stackexchange.com