testingtestinganyone
testingtestinganyone

Reputation: 497

Strapi endpoint for all media uploads

Does anyone know the endpoint for getting all of the iamges you uploaded to the media libray in one request? Im using next js with strapi and need a way to grab all of the images from the media library but there doesnt seem to be any documentation on this

Upvotes: 2

Views: 11888

Answers (3)

Ayodeji
Ayodeji

Reputation: 31

Here's a plugin I developed that could help, It can get folders and files in the folder aswell

Upvotes: 0

Md. Adil Hasan
Md. Adil Hasan

Reputation: 81

/api/upload

  1. GET /api/upload/files Get a list of files
  2. GET /api/upload/files/:id Get a specific file
  3. POST /api/upload Upload files
  4. DELETE /api/upload/files/:id Delete a file

Reference https://docs.strapi.io/developer-docs/latest/plugins/upload.html#configuration

Upvotes: 7

Godlove Damian
Godlove Damian

Reputation: 137

GET /upload/files

You can read more on the docs

Upvotes: 2

Related Questions