-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Bug report
Describe the bug
Unable to set field when upload files related to entry. File is uploaded but the field is not set.
Steps to reproduce the behavior
- Create content type person with field name (short text) and avatar (media)
- Create new person data with name "John Doe" and empty avatar
- Set permission for public to allow upload, find, and find-one
- Send http request to upload as mentioned in documentation
- See person data
- Field avatar is not set
Expected behavior
Person is set with correct avatar.
Screenshots
Set permissions for public to upload

Code snippets
CURL used to call api
curl -F "files=@logo.jpg" -F "ref=person" -F "refId=1" -F "field=avatar" http://localhost:1337/api/upload
System
- Node.js version: 14.18.0
- NPM version: 7.23.0
- Strapi version: 4.0.0
- Database: sqlite
- Operating system: Windows 10
Additional context
No additional context
jordan-jarolim, trcalek, oliveirarennan, dsolay, CMonjo and 3 more
Metadata
Metadata
Assignees
Labels
No labels



