Closed
Description
edit by @derrickmehaffy Transfer to docs team to improve the upload plugin examples (I might be able to submit a PR myself sometime soon)
Bug report
Required System information
- Node.js version: v14.15.3
- NPM version: 6.14.9
- Strapi version: 4.5.1
- Database: Postgres
- Operating system: Windows 10
Describe the bug
unable to uploadimage file using upload api with 'field' value.
Steps to reproduce the behavior
- Open Postman
- Select POST method
- Set request body type to form-data
- Set required fields (files, refId, ref, field)
- Hit send and check console output
Expected behavior
Image should be uploaded and link set to respective content type.
Screenshots
Code snippets
If applicable, add code samples to help explain your problem.
Additional context
If 'field' value is not set in postman, the image is successfully uploaded to media library.