
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-multiple-image-uploader
Advanced tools
A react component for uploading and preview multiple images
A react component for uploading and preview multiple images
Npm
npm install react-multiple-image-uploader
Yarn
yarn add react-multiple-image-uploader

import { useState } from "react";
import { RMIUploader } from "react-multiple-image-uploader";
const dataSources = [
{
id: 1,
dataURL: "https://picsum.photos/seed/1/600",
},
{
id: 2,
dataURL: "https://picsum.photos/seed/2/600",
},
{
id: 3,
dataURL: "https://picsum.photos/seed/3/600",
},
{
id: 4,
dataURL: "https://picsum.photos/seed/4/600",
},
{
id: 5,
dataURL: "https://picsum.photos/seed/5/600",
},
{
id: 6,
dataURL: "https://picsum.photos/seed/6/600",
},
{
id: 7,
dataURL: "https://picsum.photos/seed/7/600",
},
{
id: 8,
dataURL: "https://picsum.photos/seed/8/600",
},
{
id: 9,
dataURL: "https://picsum.photos/seed/9/600",
},
{
id: 10,
dataURL: "https://picsum.photos/seed/10/600",
},
];
function App() {
const [visible, setVisible] = useState(false);
const handleSetVisible = () => {
setVisible(true);
};
const hideModal = () => {
setVisible(false);
};
const onUpload = (data) => {
console.log("Upload files", data);
};
const onSelect = (data) => {
console.log("Select files", data);
};
const onRemove = (id) => {
console.log("Remove image id", id);
};
return (
<div className="App">
<button onClick={handleSetVisible}>Show Me</button>
<RMIUploader
isOpen={visible}
hideModal={hideModal}
onSelect={onSelect}
onUpload={onUpload}
onRemove={onRemove}
dataSources={dataSources}
/>
</div>
);
}
export default App;
Note: dataSources should be correct format (with id and dataURL)
| parameter | type | default | description |
|---|---|---|---|
| isOpen | boolean | false (required) | Control if the modal is open or not(true/false) |
| hideModal | function | required | Callback function to control modal boolean value (ie isOpen) |
| onUpload | function | required | Callback function return uploading images list |
| onSelect | function | required | Callback function return selected images list |
| onRemove | function | required | Callback function return delete image id |
| warnMessage | string | Number of selected images exceed maxNumber warn message | |
| dataSources | array | dataSources (above array) (required) | List of already uploaded images in array |
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
FAQs
A react component for uploading and preview multiple images
We found that react-multiple-image-uploader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.