'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



Solution 1:[1]

GET /upload/files

You can read more on the docs

Solution 2:[2]

/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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Godlove Damian
Solution 2 Md. Adil Hasan