Skip to content

Upload plugin examples not clear, should have better non react examples #1379

Closed
@jagyandeep

Description

@jagyandeep

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

  1. Open Postman
  2. Select POST method
  3. Set request body type to form-data
  4. Set required fields (files, refId, ref, field)
  5. Hit send and check console output

Expected behavior

Image should be uploaded and link set to respective content type.

Screenshots

image
image

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.

Metadata

Metadata

Assignees

Labels

issue: docs/instructionsIssues about incorrect instructions found on docs.strapi.io

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions