By eli
A plugin that help you upload file to a specific file system using rest api
released March 26, 2025
npm install strapi-plugin-media-uploadA plugin that help you upload media to a specific folder using api in strapi.
npm i strapi-plugin-media-uploadAfter installation, the plugin will be automatically enabled.
Upload media files to a specific folder using the provided API endpoints.
GET /<strapiprefix>/media/foldersPOST /<strapiprefix>/media/folder{
"name": "New Folder", // Required, folder name
"parentId": 1 // Optional, ID of the parent folder
}PUT /<strapiprefix>/media/folder{
"id": 1, // Required, ID of the folder to update,
"name": "New Folder", // Required, folder name
"parentId": 1 // Optional, new parent folder ID
}DELETE /<strapiprefix>/media/folderGET /<strapiprefix>/media/folder-structureGET /<strapiprefix>/media/folderPOST /<strapiprefix>/media/bulk-delete{
"fileIds": [27], // Required, ID of the files to delete
"folderIds": [20] // Required, ID of the folders to delete
}POST /<strapiprefix>/media/bulk-move{
"targetFolderId": 21, // Required, ID of the target folder, if not provided, the items would be move to the root folder.
"fileIds": [27], // Required, ID of the files to delete
"folderIds": [20] // Required, ID of the folders to delete
}POST /<strapiprefix>/media/uploadPUT /<strapiprefix>/media/update{
"id": 1, // Required, ID of the file to move,
"name": "New Name", // Optional, new file name
"alternativeText": "New Alternative Text", // Optional, new alternative text,
"caption": "New Caption", // Optional, new caption,
"folderId": 1, // Optional, folder id
}This plugin is compatible with Strapi 5.0.0 and above.
If you encounter any issues, please report them here.
This project is licensed under the MIT License. See the LICENSE file for details.
Eli Liu
Email: Mr.liu93@outlook.com
GitHub: Littlexiaoxiaojian
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
