'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]
Solution 2:[2]
/api/upload
- GET /api/upload/files Get a list of files
- GET /api/upload/files/:id Get a specific file
- POST /api/upload Upload files
- 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 |