Drag and Drop Multiple File Upload – Contact Form 7 - Version 1.3.5.9

Version Description

  • Add accept types data attributes See Here
Download this release

Release Info

Developer glenwpcoder
Plugin Icon 128x128 Drag and Drop Multiple File Upload – Contact Form 7
Version 1.3.5.9
Comparing to
See all releases

Code changes from version 1.3.5.8 to 1.3.5.9

assets/js/codedropz-uploader-min.js CHANGED
@@ -1,8 +1,8 @@
1
  /**
2
- * CodeDropz Uploader v1.3.5.8
3
  * Copyright 2018 Glen Mongaya
4
  * CodeDrop Drag&Drop Uploader
5
- * @version 1.3.5.8
6
  * @author CodeDropz, Glen Don L. Mongaya
7
  * @license The MIT License (MIT)
8
  */
1
  /**
2
+ * CodeDropz Uploader v1.3.5.9
3
  * Copyright 2018 Glen Mongaya
4
  * CodeDrop Drag&Drop Uploader
5
+ * @version 1.3.5.9
6
  * @author CodeDropz, Glen Don L. Mongaya
7
  * @license The MIT License (MIT)
8
  */
drag-n-drop-upload-cf7.php CHANGED
@@ -6,7 +6,7 @@
6
  * Description: This simple plugin create Drag & Drop or choose Multiple File upload in your Confact Form 7 Forms.
7
  * Text Domain: drag-and-drop-multiple-file-upload-contact-form-7
8
  * Domain Path: /languages
9
- * Version: 1.3.5.8
10
  * Author: Glen Don L. Mongaya
11
  * Author URI: http://codedropz.com
12
  * License: GPL2
@@ -21,7 +21,7 @@
21
  define( 'dnd_upload_cf7', true );
22
 
23
  /** Define plugin Version */
24
- define( 'dnd_upload_cf7_version', '1.3.5.8' );
25
 
26
  /** Define constant Plugin Directories */
27
  define( 'dnd_upload_cf7_directory', untrailingslashit( dirname( __FILE__ ) ) );
6
  * Description: This simple plugin create Drag & Drop or choose Multiple File upload in your Confact Form 7 Forms.
7
  * Text Domain: drag-and-drop-multiple-file-upload-contact-form-7
8
  * Domain Path: /languages
9
+ * Version: 1.3.5.9
10
  * Author: Glen Don L. Mongaya
11
  * Author URI: http://codedropz.com
12
  * License: GPL2
21
  define( 'dnd_upload_cf7', true );
22
 
23
  /** Define plugin Version */
24
+ define( 'dnd_upload_cf7_version', '1.3.5.9' );
25
 
26
  /** Define constant Plugin Directories */
27
  define( 'dnd_upload_cf7_directory', untrailingslashit( dirname( __FILE__ ) ) );
inc/dnd-upload-cf7.php CHANGED
@@ -485,6 +485,10 @@
485
  $atts['data-max'] = $tag->get_option( 'max-file','', true);
486
  $atts['data-id'] = ( $form->id() ? $form->id() : 0 );
487
 
 
 
 
 
488
  // Combine and format attrbiutes
489
  $atts = wpcf7_format_atts( $atts );
490
 
485
  $atts['data-max'] = $tag->get_option( 'max-file','', true);
486
  $atts['data-id'] = ( $form->id() ? $form->id() : 0 );
487
 
488
+
489
+ $types = explode('|', $atts['data-type'] );
490
+ $atts['accept'] = '.' . implode(', .', array_map( 'trim', $types ) );
491
+
492
  // Combine and format attrbiutes
493
  $atts = wpcf7_format_atts( $atts );
494
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: glenwpcoder, yordansoares
3
  Donate link : http://codedropz.com/donation
4
  Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
5
  Requires at least: 3.0.1
6
- Tested up to: 5.6
7
- Stable tag: 1.3.5.8
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -27,34 +27,37 @@ Here's a little [DEMO](http://codedropz.com/contact).
27
  * Drag & Drop or Browse File - Multiple Upload
28
  * Support Multiple Drag and Drop in One Form.
29
  * Able to delete uploaded file before being sent
30
- * Send files as email attachment or as a links.
31
  * Support multiple languages
32
  * Mobile Responsive
33
  * Cool Progress Bar
34
  * Compatible with any browser
35
 
 
 
36
  ### ⭐ Premium Features
37
 
38
  Checkout available features on **PRO version**.
39
 
40
  * Image Preview - Show Thumbnail for images
41
- * Auto Delete Files - After Form Submission
42
  - *(1 hour, 4 hours, 8 hours , days, months etc)*
43
  * Zip Files ( Compressed File )
44
  * Save Files to Wordpress Media Library
 
45
  * Change Upload Folder
46
  - Contact Form 7 - Fields
47
  - Generated Name - Timestamp
48
  - Random Folder
49
- - By User
50
  - Custom Folder
51
- - **Dynamic Folder**
52
- * Change Wordpress Upload Directory
53
  * Send to email as individual attachment, ZIP archive or as a links
54
  * Chunks Upload *( Break large files into smaller Chunks )*
 
55
  * Max Total Size *( of all Uploaded Files )*
56
- * Parallel/Sequential Upload *( Number of files to simultaneously upload )*
57
- * Change Filename Pattern ({filename}, {cf7-field-name}, {ip_address}, {random}, {post_id}, {post_slug}, etc.)
58
  * Automatically Optimize Images
59
  * **New** - Color Options (Filesize, ProgressBar, Filename etc)
60
  * **New** - Disable Button to Prevent Duplicate Submission
@@ -64,7 +67,7 @@ Checkout available features on **PRO version**.
64
  * Optimized Code and Performance
65
  * 1 Month Premium Support
66
 
67
- Pro version is also compatible with:
68
 
69
  * Contact Form 7 Add-on – Arshid
70
  * Database for Contact Form 7- Ninja
@@ -144,6 +147,9 @@ To install this plugin see below:
144
 
145
  == Changelog ==
146
 
 
 
 
147
  = 1.3.5.8 =
148
  - Fixed German translation (https://wordpress.org/support/topic/german-translation-wrong/)
149
  - Fixes - Bug on file deletion (Reported here - https://wordpress.org/support/topic/deleting-files-not-yet-uploaded-is-breaking/)
3
  Donate link : http://codedropz.com/donation
4
  Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.8
7
+ Stable tag: 1.3.5.9
8
  Requires PHP: 5.2.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
27
  * Drag & Drop or Browse File - Multiple Upload
28
  * Support Multiple Drag and Drop in One Form.
29
  * Able to delete uploaded file before being sent
30
+ * Send files as **email attachment** or as a **links**. *(see note below)*
31
  * Support multiple languages
32
  * Mobile Responsive
33
  * Cool Progress Bar
34
  * Compatible with any browser
35
 
36
+ **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](https://contactform7.com/file-uploading-and-attachment/#How-your-uploaded-files-are-managed) )*
37
+
38
  ### ⭐ Premium Features
39
 
40
  Checkout available features on **PRO version**.
41
 
42
  * Image Preview - Show Thumbnail for images
43
+ * Adjust Auto Delete Files - After Form Submission
44
  - *(1 hour, 4 hours, 8 hours , days, months etc)*
45
  * Zip Files ( Compressed File )
46
  * Save Files to Wordpress Media Library
47
+ * Change Wordpress Upload Directory
48
  * Change Upload Folder
49
  - Contact Form 7 - Fields
50
  - Generated Name - Timestamp
51
  - Random Folder
52
+ - By User - Required Login
53
  - Custom Folder
54
+ - Dynamic Folder - *user (name, id), post (id, slug), cf7 fields*
 
55
  * Send to email as individual attachment, ZIP archive or as a links
56
  * Chunks Upload *( Break large files into smaller Chunks )*
57
+ - Able to upload large files.
58
  * Max Total Size *( of all Uploaded Files )*
59
+ * Parallel/Sequential Upload *( No. of files to simultaneously upload )*
60
+ * Change **Filename Pattern** ({filename}, {cf7-field-name}, {ip_address}, {random}, {post_id}, {post_slug}, etc.)
61
  * Automatically Optimize Images
62
  * **New** - Color Options (Filesize, ProgressBar, Filename etc)
63
  * **New** - Disable Button to Prevent Duplicate Submission
67
  * Optimized Code and Performance
68
  * 1 Month Premium Support
69
 
70
+ **Pro version** is also compatible with:
71
 
72
  * Contact Form 7 Add-on – Arshid
73
  * Database for Contact Form 7- Ninja
147
 
148
  == Changelog ==
149
 
150
+ = 1.3.5.9 =
151
+ - Add accept types data attributes [See Here](https://wordpress.org/support/topic/the-user-sees-only-a-certain-type-of-files/)
152
+
153
  = 1.3.5.8 =
154
  - Fixed German translation (https://wordpress.org/support/topic/german-translation-wrong/)
155
  - Fixes - Bug on file deletion (Reported here - https://wordpress.org/support/topic/deleting-files-not-yet-uploaded-is-breaking/)