You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I see the issue in your request, for your ref you are using a colon where you need a period api::activity:activity instead of api::activity.activity
See my example below:
I will however say our docs are not great at laying out exactly what is needed here and how it should be formatted. Just as a tip for you to find the UID you can use the following CLI to get all the UIDs for your content-types: yarn strapi content-types:list or npm run strapi content-types:list
I'm going to transfer this issue over to our docs repo so we can work on improving the upload plugin docs to not just include react code examples but actually properly explain all the options and some example values for them in something like postman or thunder client
derrickmehaffy
changed the title
Unable to upload image via upload api with 'field' value
Upload plugin examples not clear, should have better non react examples
Dec 28, 2022
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
Describe the bug
unable to uploadimage file using upload api with 'field' value.
Steps to reproduce the behavior
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.
The text was updated successfully, but these errors were encountered: