I have a small issue. I'm trying to use Strapi rest api to upload image. I'm using Postman to test this out. So, I'm getting below error when uploading the image. Any help? I used GET request to get all my images and It's working fine. But Uploading is the issue. When I call the POST without a file, It will give me correct "Files are empty" response. When I add a file and try to upload, It gives me "Error: read ECONNRESET" error. In my console where I run strapi, I got "Error: Parse Error"
Asked
Active
Viewed 1,034 times
2 Answers
1
This is not a postman or strapi Issue you have to put an API prefix in the URL
Http://localhost:1337/api/upload

Tayyab Shahzad
- 321
- 2
- 3
0
I have found a solution. This is not related to Strapi. This is a issue of Postman. Postman is sending File as "undefined". So in case if someone want to know how to fix this, Just close the Postman tab and start the request from the beginning. For more info, Just see this comment.

Pasindu Dineth Peiris
- 164
- 2
- 12