Enable Drag and Drop on Adding Plugin Upload
Enable Drag and Drop on Adding Plugin Upload
Description
A WordPress plugin that adds drag and drop capabilities to the plugin upload form on /wp-admin/plugin-install.php.
Features:
- Drag and drop ZIP files directly onto the upload form
- Visual feedback during drag operations
- Click-to-browse functionality on the drop zone
- Automatic file validation (ZIP files only)
- Success/error messages for user feedback
- Smooth animations and transitions
How It Works:
The plug-in:
* Only loads on the plug-in install page (plugin-install.php)
* Adds a visual drop zone below the upload form
* Handles drag and drop events
* Validates dropped files (must be ZIP files)
* Automatically populates the file input when a file is dropped
* Provides visual feedback during drag operations
Browser Support:
Works in all modern browsers that support the HTML5 Drag and Drop API:
* Chrome
* Firefox
* Safari
* Edge
Installation
- Upload the plug-in folder to
/wp-content/plugins/ - Activate the plug-in through the ‘Plug-ins’ menu in WordPress
- Navigate to Plug-ins > Add New > Upload Plug-in
- Drag and drop a plug-in ZIP file onto the form
Faq
This plug-in works in all modern browsers that support the HTML5 Drag and Drop API, including Chrome, Firefox, Safari, and Edge.
Only ZIP files are supported. The plug-in automatically validates that dropped files are ZIP archives.
The drag and drop functionality only appears on the plug-in upload page (/wp-admin/plugin-install.php).
Reviews
Changelog
1.0.0
- Initial release
- Added drag and drop functionality to plug-in upload form
- Visual feedback during drag operations
- Automatic file validation for ZIP files
- Click-to-browse functionality on drop zone