Drag and Drop Multiple File Upload – Contact Form 7 Plugin
This simple plugin create Drag & Drop or choose Multiple File upload in your Confact Form 7 Forms.
Drag and Drop Multiple File Uploader is a simple, straightforward WordPress plugin extension for Contact Form7, which allows the user to upload multiple files using the drag-and-drop feature or the common browse-file of your webform.
Send files as email attachment or as a links. (see note below)
Support multiple languages
Mobile Responsive
Cool Progress Bar
Compatible with any browser
PLUGIN GUIDE – FREE VERSION
Note: On Free version, all uploaded files moves to a temporary folder (“/wp-content/uploads/wp_dndcf7_uploads”) then attaches the file to the mail and sends it. After that “Drag & Drop File Upload” removes the file from the temporary folder 1 hour after the submission. ( same process with the default “file” upload of Contact Form 7 – See here )
To adjust or disable the auto-deletion feature, we suggest upgrading to the PRO version for more options (see below).
⭐ Premium Features ⭐
Check out the available features in the PRO version.
Image Preview – Show Thumbnail for images
Adjust Auto Deletion of Files – After Form Submission
(1 hour, 4 hours, 8 hours , days, months etc)
Zip Files ( Compressed File )
Save Files to “WordPress Media Library”
Change WordPress Upload Directory
Change Upload Folder To:
Contact Form 7 – Fields
Generated Date & Time – Timestamp
Random Folder
By User – Required Login
Custom Folder
Dynamic Folder – user (name, id), post (id, slug), cf7 fields
Send as Individual Email Attachments, Zip Archive, or Links”
Chunks Upload ( Break large files into smaller Chunks )
Capable of uploading large files.
set a Max Total Size ( of all Uploaded Files )
Parallel Upload (No. of files that can be uploaded simultaneously)
Would you like to support the advancement of this plugin? Donate
Installation
To install this plugin see below:
Upload the plugin files to the /wp-content/plugins/drag-and-drop-multiple-file-upload-contact-form-7.zip directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the ‘Plugins’ screen in WordPress
Go to “Contact > Drag & Drop Upload” for the settings.
To limit file size in multiple file upload field generator under Contact Form 7, there’s a field File size limit (bytes).
You can also manually add limit parameter in existing [mfile] tag.
Example: [mfile upload-file-433 limit:20971520] – This limit the user to upload upto 20MB only.
Please take note it should be Bytes you may use any converter just Google (MB to Bytes converter) default of this plugin is 5MB(5242880 Bytes).
How can I limit the number of files in my Upload?
You can limit the number of files in your file upload by adding this parameter max-file:3 to your shortcode :
Example: [mfile upload-file-344 max-file:3] – this option will limit the user to upload only 3 files.
How can I Add or Limit file types
You can add or change file types in cf7 Form-tag Generator Options by adding jpeg|png|jpg|gif in Acceptable file types field.
Example : [mfile upload-file-433 filetypes:jpeg|png|jpg|gif]
How can I change text in Drag and Drop Uploading area?
You can change text Drag & Drop Files Here or Browse Files text in WordPress Admin menu under Contact > Drag & Drop Upload.
How can I change email attachment as links?
Go to WP Admin Contact -> Drag & Drop Upload settings then check “Send Attachment as links?” option.
To manage mail template, go to Contact Forms edit specific form and Select Mail tab. In Message Body add generated code from mfile. ( Example Below )
Message Body : [your-message]
File Links 1 : [upload-file-754]
File Links2 : [upload-file-755]
Note : No need to add in File Attachments field.
Changelog
1.3.8.1
Quick Fix – Unable to uncheck “Send file(s) as links” option.
1.3.8.0
Quick fix to prevent auto-deletion if the “Don’t delete files” setting was overridden by recent updates.
1.3.7.9
Bug – Added back the “Don’t delete files” option.
Optimized – Optimized plugin settings by saving them as an array instead of retrieving individual settings from the wp_options table.
Compatibility check on latest version of Contact Form 7 5.9.5.
1.3.7.8
Added “index.php” file to plugin upload directories for security enhancement, especially for servers like Nginx that do not support .htaccess files. This prevents unauthorized access to files. (Thanks to @Wordfence team for reporting the issue)
New – Added an option in the admin “Unique Filename” to randomize or generate unique filename.
1.3.7.7
Fixes – js/css enabled as default ‘dnd_cf7_load_on_cf7_page’ filter
Fixes – Remove javascript:void and replaced with ‘#’ on browse and delete for SEO purposes (JS)
1.3.7.6
Fixes – Removed inline css and use proper enqueue (https://wordpress.org/support/topic/html-validation-error-21/)
Minor bug fixes and improvements
1.3.7.5
Fixes – Fixed JS error for custom button type submit.
1.3.7.4
Fixes – Security Updates “Unauthenticated Arbitrary File Upload” (Thanks to @István from Wordfence)
1.3.7.3
New – Added Chinese (Taiwan) Translation (Thanks to: Alex Lion)
New – Added .htaccess file inside “wp_dndcf7_uploads” upload directory. ( prevent from direct access )
Options: -Indexes \n \n deny from all \n
Fixed – File Attachments bug ( Issues on additional mail when (file attachment) is removed still send the file )
1.3.3.3.2
Bugs – Fixed unable to submit form ( 500 Internal Server Error in response )
1.3.3.3.1
Fixes – Minor updates (packed the wrong file)
1.3.3.3
Fixed – Security Issues ( Unrestricted File Upload to Remote Code Execution – Thanks to @Austin )
Able bypass and upload file (remotely) by renaming to ie: shell.php% and modified supported_type to jpg|png|php%
Solution : Added more security, check/validate file type and created new function ‘dnd_cf7_validate_type’ to determine if file name extension is valid or not.
New – Make ‘deleting…’ and ‘remove’ text translatable ( compatible using WPML String Translation ).
Added – a note message when file reached the max-file Limit ( “To inform user that some of the files are not uploaded” ).
Added – Better Ajax deletion ( Remove files from the server – Only if Send As Attachment is checked )
Optimized – Form send loading time has been optimized ( Improved loading time for large attachment )
Fixed – Bug reported by @palychwp ” remove file still send sends with the form (https://wordpress.org/support/topic/file-uploading-is-working-incorrect/)
Added – Validate File/Attachment first before the upload start (“some says it’s frustating :)”)
(PHP or Server side validation still there for security and better validation)
Improved file counting via LocalStorage instead of Global variable.
1.2.5.0
Fixed – Please Update to 1.2.5.0 to fixed disable button issue.
1.2.5
Fixed – Improved ( Disable button while upload is on progress )
Fixes – Validate file size limit before uploading the file ( https://wordpress.org/support/topic/file-uploading-is-working-incorrect/ )
1.2.4
Added – Support WPML using .po and .mo files
Added – Added to support multilingual ( using Poedit )
Fixed – Prevent attachment from sending to Mail(2) if field attachment is not set. (https://wordpress.org/support/topic/problem-with-2th-mail-attachment-2/)
Added – Disable ‘submit’ button while upload is on progress…
1.2.3
Added – Multiple Drag and Drop fields in a form
Added – Options in admin for error message
Added – Option that allow user to send attachment as links
Added – Added new folder name wp_dndcf7_uploads to separate files from wpcf7_uploads ( When option ‘Send Attachment as links?’ is check ).
1.2.2
Add – Create admin settings where you can manage or change text in your uploading area. It’s under ‘contacts’ > ‘Drag and Drop’.
New – Empty or Clear attachment file when Contact Form successfully send.
Fixes – Fixed remove item bugs when file is greater than file limit.
Fixes – Changed ‘icon-moon’ fonts to avoid conflict with the other themes.
New – Added text domain for language translations.
1.2.2
Issue – fixed bug when file is not required(*).
Issue – fixed error on ‘wpcf7_mail_components’ components hooks when there’s no file.
1.2.1
Issue – fixed bug when file is not required(*).
Issue – fixed error on ‘wpcf7_mail_components’ components hooks when there’s no file.
1.2
Add admin option to limit the number of files. (Maximum File Upload Limit)