New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-filemanager-u2pm

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-filemanager-u2pm

React Filemanager-u2pm

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

React Filemanager-u2pm

A modern, flexible file manager React component powered by a PHP backend API. Designed for use in content management systems, custom editors, and file-based workflows.

Features

  • Folder navigation (click and breadcrumb)
  • View folders, images
  • Create, delete, rename files and folders
  • Multi-image selection with callback
  • Ideal for use with editors (e.g., TinyMCE Quill)
  • Simple PHP backend (API-style api.php)

Installation

npm install filemanager-u2pm

If you don't have it in your project, you need to install it.

npm i i18next, react-i18next, primereact, primeicons and axios

import React from 'react'; import { FileManager } from 'filemanager-u2pm'; import 'primereact/resources/themes/lara-dark-purple/theme.css'; import 'primereact/resources/primereact.min.css'; // See more primerect Theme https://primereact.org/theming/

const App = () => { const handleSelectedImages = (images) => { console.log('Selected images:', images); // Send selected images to your editor };

return ( <FileManager apiUrl="https://yourdomain.com/api.php" selectedImages={[]} onSelectImages={handleSelectedImages} language= 'en' /> ); };

export default App;

PropTypeDescription
apiUrlstringURL to your PHP backend (api.php?action=...)
selectedImagesarrayArray of pre-selected image paths (optional)
onSelectImages(images) => voidCallback when user selects one or more images

switch ($_POST['action']) { case 'readFolder': // Return folder and file list as JSON break; case 'deleteFolder': // Delete a folder and return status break; case 'upload': // Handle file uploads break; // etc. }

Download PHP API filemanager: www.u2pm/download/filemanager.zip

File Operations Supported List folders and files

Create folder

Delete folder

Rename folder

Upload image

Delete file

Select multiple files (images only)

Tech Stack React 18+

PHP (backend)

Axios (HTTP)

📄 License MIT © [Chabrija U2PM Team]

FAQs

Package last updated on 13 Jun 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