You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

strapi-plugin-media-upload

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-plugin-media-upload

A plugin that help you upload file to a specific file system using api

1.0.5
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Strapi Plugin Media Upload

A plugin that help you upload media to a specific folder using api in strapi.

Features

  • Upload files to a specific folder structure.
  • Manage folders and files through API.
  • Easy integration with Strapi projects.

Installation

npm i strapi-plugin-media-upload

Configuration

After installation, the plugin will be automatically enabled.

Usage

Upload media files to a specific folder using the provided API endpoints.

Folders Manager

1.Query Folders

  • GET /<strapiprefix>/media/folders
  • Query Params:
    • parentId (optional): ID of the parent folder, return root folders if not fill.

2.Create Folder

  • POST /<strapiprefix>/media/folder
  • Request Body:
    {
        "name": "New Folder", // Required, folder name
        "parentId": 1         // Optional, ID of the parent folder
    }
    

3.Update Folder

  • PUT /<strapiprefix>/media/folder
  • Request Body:
    {
        "id": 1,              // Required, ID of the folder to update,
        "name": "New Folder", // Required, folder name
        "parentId": 1         // Optional, new parent folder ID
    }
    

Media Uploader

1.Upload Media

  • POST /<strapiprefix>/media/upload
  • Request Body:
    • file (multipart/form-data): The file to upload.
    • folderId (optional): ID of the folder where the file should be uploaded.

2.Move Media

  • PUT /<strapiprefix>/media/move
  • Request Body:
    {
        "fileId": 1,    // Required, ID of the file to move,
        "folderId": 1,  // Required, folder id
    }
    

Compatibility

This plugin is compatible with Strapi 5.0.0 and above.

Issues

If you encounter any issues, please report them here.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Eli Liu
Email: Mr.liu93@outlook.com
GitHub: Littlexiaoxiaojian

Keywords

strapi-plugin

FAQs

Package last updated on 13 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts