@mehpak/mp-imageuploader
v1.1.2
Published
👨💻 Developed by **Mehrdad Pakniat (مهرداد پاکنیت)**
Readme
MPImageUploader
👨💻 Developed by Mehrdad Pakniat (مهرداد پاکنیت)
🌍 Languages: فارسی
Demo
You can try MP ImageUploader live on GitHub Pages:
MPImageUploader is a lightweight JavaScript plugin that enables users to upload images with:
- ✅ Drag & Drop support
- ✅ Image preview
- ✅ Add button
- ✅ Delete button
- ✅ Support for loading an existing image (Edit Mode)
- ✅ Multilingual support (English, Persian, or custom JSON)
- ✅ Option to load language texts from external JSON via URL
It’s a simple, dependency-free plugin designed for fast integration into any web project.
✅ Features
- Drag & Drop image upload
- Preview selected image
- Add button to select files manually
- Delete button to remove the selected image
- Load a pre-existing image when editing (via
existingImageoption) - Multilingual text support:
- Use built-in English or Persian
- Load from local JSON file (
lang/en.json,lang/fa.json) - Load from external URL (
multilingual.urloption)
✅ Installation
Include the plugin files directly using <link> and <script> tags:
<link rel="stylesheet" href="dist/MP-ImageUploader.min.css" />
<script src="dist/MP-ImageUploader.min.js"></script>✅ Basic Usage
