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

Version Description

  • 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...
Download this release

Release Info

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

Code changes from version 1.2.3 to 1.2.4

assets/js/codedropz-uploader-min.js CHANGED
@@ -1,11 +1,11 @@
1
  /**
2
- * CodeDropz Uploader v1.0
3
  * Copyright 2018 Glen Mongaya
4
  * CodeDrop Drag&Drop Uploader
5
- * @version 1.0
6
  * @author CodeDropz, Glen Don L. Mongaya
7
  * @license The MIT License (MIT)
8
  */
9
 
10
- // CodeDropz Drag and Drop Plugin
11
- !function(e){e.fn.CodeDropz_Uploader=function(a){var d=e.extend({handler:this,color:"#000",background:"",server_max_error:"Uploaded file exceeds the maximum upload size of your server.",max_file:10,text:"Drag & Drop Files Here",separator:"or",button_text:"Browse Files",max_upload_size:"5242880",supported_type:"jpg|jpeg|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv",on_success:""},a),r=1,o='<div class="codedropz-upload-handler"><div class="codedropz-upload-container"><div class="codedropz-upload-inner"><h3>'+d.text+"</h3><span>"+d.separator+'</span><div class="codedropz-btn-wrap"><a class="cd-upload-btn" href="javascript:void(0)">'+d.button_text+"</a></div></div></div></div>";d.handler.wrapAll('<div class="codedropz-upload-wrapper"></div>');var n=d.handler.parents("form"),s=d.handler.parents(".codedropz-upload-wrapper");d.handler.after(o),e(".codedropz-upload-handler",s).on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}),e(".codedropz-upload-handler",s).on("dragover dragenter",function(a){e(this).addClass("codedropz-dragover")}),e(".codedropz-upload-handler",s).on("dragleave dragend drop",function(a){e(this).removeClass("codedropz-dragover")}),e("a.cd-upload-btn",s).on("click",function(e){e.preventDefault(),d.handler.click()}),e(".codedropz-upload-handler",s).on("drop",function(e){p(e.originalEvent.dataTransfer.files,"drop"),d.handler.trigger("change")}),d.handler.on("change",function(e){p(this.files,"click")});var p=function(a,o){if(!(!a.length>1)){var p=new FormData;e.each(a,function(a,i){if(r>d.max_file)return!1;r++;var l,c,u,v,f,h=(l=i,c=e(".codedropz-upload-handler",s),u="dnd-file-"+Math.random().toString(36).substr(2,9),v='<div class="dnd-upload-image"><span class="dnd-icon-blank-file"></span></div><div class="dnd-upload-details"><span class="name">'+l.name+" <em>("+(0===(f=l.size)?"0":(kBytes=f/1024,fileSize=kBytes>=1024?(kBytes/1024).toFixed(2)+"MB":kBytes.toFixed(2)+"KB",fileSize))+')</em></span><a href="javascript:void(0)" title="Remove" class="remove-file"><span class="dnd-icon-remove"></span></a><span class="dnd-progress-bar"><span></span></span></div>',c.after('<div id="'+u+'" class="dnd-upload-status">'+v+"</div>"),u);p.append("upload-file",i),p.append("supported_type",d.supported_type),p.append("size_limit",d.max_upload_size),p.append("action","dnd_codedropz_upload"),p.append("type",o);e.ajax({url:d.ajax_url,type:n.attr("method"),data:p,dataType:"json",cache:!1,contentType:!1,processData:!1,xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var a=e.loaded/e.total,d=parseInt(100*a);t(h,d)}},!1),e},complete:function(){t(h,100)},success:function(a){a.success?e.isFunction(d.on_success)&&d.on_success.call(this,h,a):(e(".dnd-progress-bar",e("#"+h)).remove(),e(".dnd-upload-details",e("#"+h)).append('<span class="has-error">'+a.data+"</span>"))},error:function(a,r,o){e(".dnd-progress-bar",e("#"+h)).remove(),e(".dnd-upload-details",e("#"+h)).append('<span class="has-error">'+d.server_max_error+"</span>")}})})}};function t(a,d){var r=e(".dnd-progress-bar",e("#"+a));return r.length>0&&(progress_width=d*r.width()/100,e("span",r).animate({width:progress_width},10).text(d+"% "),100==d&&e("span",r).addClass("complete")),!1}e(document).on("click",".dnd-icon-remove",function(){e(this).parents(".dnd-upload-status").remove(),r-=1})}}(jQuery);
1
  /**
2
+ * CodeDropz Uploader v1.1
3
  * Copyright 2018 Glen Mongaya
4
  * CodeDrop Drag&Drop Uploader
5
+ * @version 1.1
6
  * @author CodeDropz, Glen Don L. Mongaya
7
  * @license The MIT License (MIT)
8
  */
9
 
10
+ // CodeDropz Drag and Drop Plugin
11
+ !function(e){e.fn.CodeDropz_Uploader=function(a){var d=e.extend({handler:this,color:"#000",background:"",server_max_error:"Uploaded file exceeds the maximum upload size of your server.",max_file:10,text:"Drag & Drop Files Here",separator:"or",button_text:"Browse Files",max_upload_size:"5242880",supported_type:"jpg|jpeg|JPG|png|gif|pdf|doc|docx|ppt|pptx|odt|avi|ogg|m4a|mov|mp3|mp4|mpg|wav|wmv",on_success:""},a),r=1,o='<div class="codedropz-upload-handler"><div class="codedropz-upload-container"><div class="codedropz-upload-inner"><h3>'+d.text+"</h3><span>"+d.separator+'</span><div class="codedropz-btn-wrap"><a class="cd-upload-btn" href="javascript:void(0)">'+d.button_text+"</a></div></div></div></div>";d.handler.wrapAll('<div class="codedropz-upload-wrapper"></div>');var n=d.handler.parents("form"),s=d.handler.parents(".codedropz-upload-wrapper");d.handler.after(o),e(".codedropz-upload-handler",s).on("drag dragstart dragend dragover dragenter dragleave drop",function(e){e.preventDefault(),e.stopPropagation()}),e(".codedropz-upload-handler",s).on("dragover dragenter",function(a){e(this).addClass("codedropz-dragover")}),e(".codedropz-upload-handler",s).on("dragleave dragend drop",function(a){e(this).removeClass("codedropz-dragover")}),e("a.cd-upload-btn",s).on("click",function(e){e.preventDefault(),d.handler.click()}),e(".codedropz-upload-handler",s).on("drop",function(e){t(e.originalEvent.dataTransfer.files,"drop")}),d.handler.on("change",function(a){var d;t(this.files,"click"),btnOBJ=e('input[type="submit"]',n),(d=btnOBJ).length>0&&d.addClass("disable").prop("disabled",!0)});var t=function(a,o){if(!(!a.length>1)){console.log(a.length);var t=new FormData;e.each(a,function(a,i){if(r>d.max_file)return!1;r++;var l=function(a){var d=e(".codedropz-upload-handler",s),r="dnd-file-"+Math.random().toString(36).substr(2,9),o='<div class="dnd-upload-image"><span class="dnd-icon-blank-file"></span></div><div class="dnd-upload-details"><span class="name">'+a.name+" <em>("+(n=a.size,0===n?"0":(kBytes=n/1024,fileSize=kBytes>=1024?(kBytes/1024).toFixed(2)+"MB":kBytes.toFixed(2)+"KB",fileSize))+')</em></span><a href="javascript:void(0)" title="Remove" class="remove-file"><span class="dnd-icon-remove"></span></a><span class="dnd-progress-bar"><span></span></span></div>';var n;return d.after('<div id="'+r+'" class="dnd-upload-status">'+o+"</div>"),r}(i);t.append("upload-file",i),t.append("supported_type",d.supported_type),t.append("size_limit",d.max_upload_size),t.append("action","dnd_codedropz_upload"),t.append("type",o);e.ajax({url:d.ajax_url,type:n.attr("method"),data:t,dataType:"json",cache:!1,contentType:!1,processData:!1,xhr:function(){var e=new window.XMLHttpRequest;return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var a=e.loaded/e.total,d=parseInt(100*a);p(l,d)}},!1),e},complete:function(){p(l,100)},success:function(a){a.success?e.isFunction(d.on_success)&&d.on_success.call(this,l,a):(e(".dnd-progress-bar",e("#"+l)).remove(),e(".dnd-upload-details",e("#"+l)).append('<span class="has-error">'+a.data+"</span>"),e('input[type="submit"]',n).removeClass("disabled").prop("disabled",!1))},error:function(a,r,o){e(".dnd-progress-bar",e("#"+l)).remove(),e(".dnd-upload-details",e("#"+l)).append('<span class="has-error">'+d.server_max_error+"</span>"),e('input[type="submit"]',n).removeClass("disabled").prop("disabled",!1)}})})}};function p(a,d){var r=e(".dnd-progress-bar",e("#"+a));return r.length>0&&(progress_width=d*r.width()/100,e("span",r).animate({width:progress_width},10).text(d+"% "),100==d&&e("span",r).addClass("complete")),!1}e(document).on("click",".dnd-icon-remove",function(){e(this).parents(".dnd-upload-status").remove(),r-=1})}}(jQuery);
assets/js/dnd-upload-cf7.js CHANGED
@@ -20,6 +20,11 @@ jQuery(document).ready(function($){
20
  // Progressbar Object
21
  var progressDetails = $('#' + progressBar, dnd_input_file.parents('.codedropz-upload-wrapper') );
22
 
 
 
 
 
 
23
  // Append hidden input field
24
  progressDetails
25
  .find('.dnd-upload-details')
20
  // Progressbar Object
21
  var progressDetails = $('#' + progressBar, dnd_input_file.parents('.codedropz-upload-wrapper') );
22
 
23
+ // If it's complete remove disabled attribute in button
24
+ if( $('span.complete', $('#' + progressBar)).hasClass('complete') ) {
25
+ $('input[type="submit"]', dnd_input_file.parents('form') ).removeClass('disabled').prop( "disabled", false );
26
+ }
27
+
28
  // Append hidden input field
29
  progressDetails
30
  .find('.dnd-upload-details')
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: dnd-upload-cf7
8
  * Domain Path: /languages
9
- * Version: 1.2.3
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.2.3' );
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: dnd-upload-cf7
8
  * Domain Path: /languages
9
+ * Version: 1.2.4
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.2.4' );
25
 
26
  /** Define constant Plugin Directories */
27
  define( 'dnd_upload_cf7_directory', untrailingslashit( dirname( __FILE__ ) ) );
inc/dnd-upload-cf7.php CHANGED
@@ -17,6 +17,9 @@
17
  add_action( 'wpcf7_init', 'dnd_cf7_upload_add_form_tag_file' );
18
  add_action( 'wpcf7_enqueue_scripts', 'dnd_cf7_scripts' );
19
 
 
 
 
20
  // Ajax Upload
21
  add_action( 'wp_ajax_dnd_codedropz_upload', 'dnd_upload_cf7_upload' );
22
  add_action( 'wp_ajax_nopriv_dnd_codedropz_upload', 'dnd_upload_cf7_upload' );
@@ -28,6 +31,11 @@
28
  // Add Submenu - Settings
29
  add_action('admin_menu', 'dnd_admin_settings');
30
 
 
 
 
 
 
31
  // Hooks for admin settings
32
  function dnd_admin_settings() {
33
  add_submenu_page( 'wpcf7', 'Drag & Drop Uploader - Settings', 'Drag & Drop Upload', 'manage_options', 'drag-n-drop-upload','dnd_upload_admin_settings');
@@ -55,6 +63,10 @@
55
 
56
  // Hooks before sending the email
57
  function dnd_cf7_before_send_mail( $wpcf7 ){
 
 
 
 
58
 
59
  // Check If send attachment as link
60
  if( ! get_option('drag_n_drop_mail_attachment') ) {
@@ -106,6 +118,7 @@
106
 
107
  // hooks - Custom cf7 Mail components
108
  function dnd_cf7_mail_components( $components, $form ) {
 
109
 
110
  // cf7 - Submission Object
111
  $submission = WPCF7_Submission::get_instance();
@@ -118,6 +131,11 @@
118
  return $components;
119
  }
120
 
 
 
 
 
 
121
  // Confirm upload dir
122
  wpcf7_init_uploads();
123
 
@@ -149,6 +167,10 @@
149
  }
150
  }
151
 
 
 
 
 
152
  return $components;
153
  }
154
 
@@ -167,9 +189,9 @@
167
  array(
168
  'ajax_url' => admin_url( 'admin-ajax.php' ),
169
  'drag_n_drop_upload' => array(
170
- 'text' => ( get_option('drag_n_drop_text') ? get_option('drag_n_drop_text') : 'Drag & Drop Files Here' ),
171
- 'or_separator' => ( get_option('drag_n_drop_separator') ? get_option('drag_n_drop_separator') : 'or' ),
172
- 'browse' => ( get_option('drag_n_drop_browse_text') ? get_option('drag_n_drop_browse_text') : 'Browse Files' ),
173
  'server_max_error' => ( get_option('drag_n_drop_error_server_limit') ? get_option('drag_n_drop_error_server_limit') : dnd_cf7_error_msg('server_limit') ),
174
  )
175
  )
@@ -259,7 +281,7 @@
259
  $multiple_files = ( isset( $_POST[ $name ] ) ? $_POST[ $name ] : null );
260
 
261
  // No file
262
- if ( $file['error'] && UPLOAD_ERR_NO_FILE != $file['error'] ) {
263
  $result->invalidate( $tag, wpcf7_get_message( 'upload_failed_php_error' ) );
264
  return $result;
265
  }
17
  add_action( 'wpcf7_init', 'dnd_cf7_upload_add_form_tag_file' );
18
  add_action( 'wpcf7_enqueue_scripts', 'dnd_cf7_scripts' );
19
 
20
+ // Hook language init
21
+ add_action('plugins_loaded','dnd_load_plugin_textdomain');
22
+
23
  // Ajax Upload
24
  add_action( 'wp_ajax_dnd_codedropz_upload', 'dnd_upload_cf7_upload' );
25
  add_action( 'wp_ajax_nopriv_dnd_codedropz_upload', 'dnd_upload_cf7_upload' );
31
  // Add Submenu - Settings
32
  add_action('admin_menu', 'dnd_admin_settings');
33
 
34
+ // Load plugin text-domain
35
+ function dnd_load_plugin_textdomain() {
36
+ load_plugin_textdomain( 'dnd-upload-cf7', false, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages' );
37
+ }
38
+
39
  // Hooks for admin settings
40
  function dnd_admin_settings() {
41
  add_submenu_page( 'wpcf7', 'Drag & Drop Uploader - Settings', 'Drag & Drop Upload', 'manage_options', 'drag-n-drop-upload','dnd_upload_admin_settings');
63
 
64
  // Hooks before sending the email
65
  function dnd_cf7_before_send_mail( $wpcf7 ){
66
+ global $_mail;
67
+
68
+ // Mail Counter
69
+ $_mail = 0;
70
 
71
  // Check If send attachment as link
72
  if( ! get_option('drag_n_drop_mail_attachment') ) {
118
 
119
  // hooks - Custom cf7 Mail components
120
  function dnd_cf7_mail_components( $components, $form ) {
121
+ global $_mail;
122
 
123
  // cf7 - Submission Object
124
  $submission = WPCF7_Submission::get_instance();
131
  return $components;
132
  }
133
 
134
+ // If mail_2 is set - Do not send attachment ( unless File Attachment field is not empty )
135
+ if( ( $mail_2 = $form->prop('mail_2') ) && $mail_2['active'] && empty( $mail_2['attachments'] ) && $_mail >= 1 ) {
136
+ return $components;
137
+ }
138
+
139
  // Confirm upload dir
140
  wpcf7_init_uploads();
141
 
167
  }
168
  }
169
 
170
+ // Increment mail counter
171
+ $_mail = $_mail + 1;
172
+
173
+ // Return setup components
174
  return $components;
175
  }
176
 
189
  array(
190
  'ajax_url' => admin_url( 'admin-ajax.php' ),
191
  'drag_n_drop_upload' => array(
192
+ 'text' => ( get_option('drag_n_drop_text') ? get_option('drag_n_drop_text') : __('Drag & Drop Files Here','dnd-upload-cf7') ),
193
+ 'or_separator' => ( get_option('drag_n_drop_separator') ? get_option('drag_n_drop_separator') : __('or','dnd-upload-cf7') ),
194
+ 'browse' => ( get_option('drag_n_drop_browse_text') ? get_option('drag_n_drop_browse_text') : __('Browse Files','dnd-upload-cf7') ),
195
  'server_max_error' => ( get_option('drag_n_drop_error_server_limit') ? get_option('drag_n_drop_error_server_limit') : dnd_cf7_error_msg('server_limit') ),
196
  )
197
  )
281
  $multiple_files = ( isset( $_POST[ $name ] ) ? $_POST[ $name ] : null );
282
 
283
  // No file
284
+ if ( $file['error'] && UPLOAD_ERR_NO_FILE != $file['error'] && is_null( $multiple_files ) ) {
285
  $result->invalidate( $tag, wpcf7_get_message( 'upload_failed_php_error' ) );
286
  return $result;
287
  }
languages/dnd-upload-cf7-de_DE.mo ADDED
Binary file
languages/dnd-upload-cf7-de_DE.po ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Drag and Drop Multiple File Upload - Contact Form 7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-03-18 14:28+0000\n"
6
+ "PO-Revision-Date: 2019-03-18 14:35+0000\n"
7
+ "Last-Translator: admin <info@aachen-webdesigner.de>\n"
8
+ "Language-Team: Deutsch\n"
9
+ "Language: de-DE\n"
10
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.2.1; wp-5.1.1"
16
+
17
+ #: inc/dnd-upload-cf7.php:50
18
+ msgid "The uploaded file exceeds the maximum upload size of your server."
19
+ msgstr ""
20
+ "Die hochgeladene Datei überschreitet die maximale Upload-Größe Ihres Servers."
21
+
22
+ #: inc/dnd-upload-cf7.php:51
23
+ msgid "Uploading a file fails for any reason"
24
+ msgstr "Das Hochladen einer Datei schlägt aus irgendeinem Grund fehl."
25
+
26
+ #: inc/dnd-upload-cf7.php:52
27
+ msgid "Uploaded file is too large"
28
+ msgstr "Die Datei überscheitet das Upload Limit!"
29
+
30
+ #: inc/dnd-upload-cf7.php:53
31
+ msgid "Uploaded file is not allowed for file type"
32
+ msgstr "Die Hochgeladene Datei ist für diesen Dateityp nicht erlaubt."
33
+
34
+ #: inc/dnd-upload-cf7.php:192
35
+ msgid "Drag & Drop Files Here"
36
+ msgstr "Drag & Drop (Bilder in dieses Feld ziehen)"
37
+
38
+ #: inc/dnd-upload-cf7.php:193
39
+ msgid "or"
40
+ msgstr "oder"
41
+
42
+ #: inc/dnd-upload-cf7.php:194
43
+ msgid "Browse Files"
44
+ msgstr "Dateien auswählen"
45
+
46
+ #: inc/dnd-upload-cf7.php:309
47
+ msgid "multiple file upload"
48
+ msgstr "Upload mehrerer Dateien"
49
+
50
+ #: inc/dnd-upload-cf7.php:502
51
+ msgid "Send Attachment as links?"
52
+ msgstr "Anhang als Link versenden?"
53
+
54
+ #: inc/dnd-upload-cf7.php:507
55
+ msgid "Uploader Info"
56
+ msgstr "Informationen zum Hochladen"
57
+
58
+ #: inc/dnd-upload-cf7.php:511
59
+ msgid "Drag & Drop Text"
60
+ msgstr "Drag & Drop Text"
61
+
62
+ #: inc/dnd-upload-cf7.php:519
63
+ msgid "Browse Text"
64
+ msgstr "Dateien auswählen"
65
+
66
+ #: inc/dnd-upload-cf7.php:524
67
+ msgid "Error Message"
68
+ msgstr "Fehlermeldung"
69
+
70
+ #: inc/dnd-upload-cf7.php:528
71
+ msgid "File exceeds server limit"
72
+ msgstr "Datei überschreitet das Serverlimit"
73
+
74
+ #: inc/dnd-upload-cf7.php:532
75
+ msgid "Failed to Upload"
76
+ msgstr "Fehler beim Upload"
77
+
78
+ #: inc/dnd-upload-cf7.php:536
79
+ msgid "Files too large"
80
+ msgstr "Dateien zu gross"
81
+
82
+ #: inc/dnd-upload-cf7.php:540
83
+ msgid "Invalid file Type"
84
+ msgstr "Ungültiger Dateityp"
85
+
86
+ #. Name of the plugin
87
+ msgid "Drag and Drop Multiple File Upload - Contact Form 7"
88
+ msgstr "Mehrere Dateien per Drag & Drop hochladen - Kontaktformular 7"
89
+
90
+ #. Description of the plugin
91
+ msgid ""
92
+ "This simple plugin create Drag & Drop or choose Multiple File upload in your "
93
+ "Confact Form 7 Forms."
94
+ msgstr ""
95
+ "Mit diesen Plugin einfach mit Drag & Drop oder per Datei auswahl Confact "
96
+ "Form 7 einfügen."
97
+
98
+ #. URI of the plugin
99
+ msgid "https://profiles.wordpress.org/glenwpcoder"
100
+ msgstr "https://profiles.wordpress.org/glenwpcoder"
101
+
102
+ #. Author of the plugin
103
+ msgid "Glen Don L. Mongaya"
104
+ msgstr "Glen Don L. Mongaya"
105
+
106
+ #. Author URI of the plugin
107
+ msgid "http://codedropz.com"
108
+ msgstr "http://codedropz.com"
languages/dnd-upload-cf7-fr_FR.mo ADDED
Binary file
languages/dnd-upload-cf7-fr_FR.po ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2019-03-18 18:47+0800\n"
5
+ "PO-Revision-Date: 2019-03-18 18:49+0800\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "Language: fr\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.2.1\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
+ "X-Poedit-KeywordsList: __;__e;esc_html__\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: inc/dnd-upload-cf7.php:50
19
+ msgid "The uploaded file exceeds the maximum upload size of your server."
20
+ msgstr ""
21
+
22
+ #: inc/dnd-upload-cf7.php:51
23
+ msgid "Uploading a file fails for any reason"
24
+ msgstr ""
25
+
26
+ #: inc/dnd-upload-cf7.php:52
27
+ msgid "Uploaded file is too large"
28
+ msgstr ""
29
+
30
+ #: inc/dnd-upload-cf7.php:53
31
+ msgid "Uploaded file is not allowed for file type"
32
+ msgstr ""
33
+
34
+ #: inc/dnd-upload-cf7.php:192
35
+ msgid "Drag & Drop Files Here"
36
+ msgstr "Faites glisser et déposez les fichiers ici"
37
+
38
+ #: inc/dnd-upload-cf7.php:193
39
+ msgid "or"
40
+ msgstr "ou"
41
+
42
+ #: inc/dnd-upload-cf7.php:194
43
+ msgid "Browse Files"
44
+ msgstr "Parcourir les fichiers"
45
+
46
+ #: inc/dnd-upload-cf7.php:309
47
+ msgid "multiple file upload"
48
+ msgstr ""
49
+
50
+ #: inc/dnd-upload-cf7.php:321
51
+ #, php-format
52
+ msgid ""
53
+ "Generate a form-tag for a file uploading field. For more details, see %s."
54
+ msgstr ""
55
+
56
+ #: inc/dnd-upload-cf7.php:322
57
+ msgid "https://contactform7.com/file-uploading-and-attachment/"
58
+ msgstr ""
59
+
60
+ #: inc/dnd-upload-cf7.php:322
61
+ msgid "File Uploading and Attachment"
62
+ msgstr ""
63
+
64
+ #: inc/dnd-upload-cf7.php:332 inc/dnd-upload-cf7.php:335
65
+ msgid "Field type"
66
+ msgstr ""
67
+
68
+ #: inc/dnd-upload-cf7.php:336
69
+ msgid "Required field"
70
+ msgstr ""
71
+
72
+ #: inc/dnd-upload-cf7.php:341
73
+ msgid "Name"
74
+ msgstr ""
75
+
76
+ #: inc/dnd-upload-cf7.php:345
77
+ msgid "File size limit (bytes)"
78
+ msgstr ""
79
+
80
+ #: inc/dnd-upload-cf7.php:349
81
+ msgid "Acceptable file types"
82
+ msgstr ""
83
+
84
+ #: inc/dnd-upload-cf7.php:353
85
+ msgid "Max file upload"
86
+ msgstr ""
87
+
88
+ #: inc/dnd-upload-cf7.php:357
89
+ msgid "Id attribute"
90
+ msgstr ""
91
+
92
+ #: inc/dnd-upload-cf7.php:361
93
+ msgid "Class attribute"
94
+ msgstr ""
95
+
96
+ #: inc/dnd-upload-cf7.php:372
97
+ msgid "Insert Tag"
98
+ msgstr ""
99
+
100
+ #: inc/dnd-upload-cf7.php:376
101
+ #, php-format
102
+ msgid ""
103
+ "To attach the file uploaded through this field to mail, you need to insert "
104
+ "the corresponding mail-tag (%s) into the File Attachments field on the Mail "
105
+ "tab."
106
+ msgstr ""
languages/dnd-upload-cf7-ko_KR.mo ADDED
Binary file
languages/dnd-upload-cf7-ko_KR.po ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2019-03-18 18:47+0800\n"
5
+ "PO-Revision-Date: 2019-03-18 19:01+0800\n"
6
+ "Language-Team: \n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "X-Generator: Poedit 2.2.1\n"
11
+ "X-Poedit-Basepath: ..\n"
12
+ "Plural-Forms: nplurals=1; plural=0;\n"
13
+ "X-Poedit-KeywordsList: __;__e;esc_html__\n"
14
+ "Last-Translator: \n"
15
+ "Language: ko\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: inc/dnd-upload-cf7.php:50
19
+ msgid "The uploaded file exceeds the maximum upload size of your server."
20
+ msgstr ""
21
+
22
+ #: inc/dnd-upload-cf7.php:51
23
+ msgid "Uploading a file fails for any reason"
24
+ msgstr ""
25
+
26
+ #: inc/dnd-upload-cf7.php:52
27
+ msgid "Uploaded file is too large"
28
+ msgstr ""
29
+
30
+ #: inc/dnd-upload-cf7.php:53
31
+ msgid "Uploaded file is not allowed for file type"
32
+ msgstr ""
33
+
34
+ #: inc/dnd-upload-cf7.php:192
35
+ msgid "Drag & Drop Files Here"
36
+ msgstr "드래그 앤 드롭 파일"
37
+
38
+ #: inc/dnd-upload-cf7.php:193
39
+ msgid "or"
40
+ msgstr "또는"
41
+
42
+ #: inc/dnd-upload-cf7.php:194
43
+ msgid "Browse Files"
44
+ msgstr "파일 찾아보기"
45
+
46
+ #: inc/dnd-upload-cf7.php:309
47
+ msgid "multiple file upload"
48
+ msgstr ""
49
+
50
+ #: inc/dnd-upload-cf7.php:321
51
+ #, php-format
52
+ msgid ""
53
+ "Generate a form-tag for a file uploading field. For more details, see %s."
54
+ msgstr ""
55
+
56
+ #: inc/dnd-upload-cf7.php:322
57
+ msgid "https://contactform7.com/file-uploading-and-attachment/"
58
+ msgstr ""
59
+
60
+ #: inc/dnd-upload-cf7.php:322
61
+ msgid "File Uploading and Attachment"
62
+ msgstr ""
63
+
64
+ #: inc/dnd-upload-cf7.php:332 inc/dnd-upload-cf7.php:335
65
+ msgid "Field type"
66
+ msgstr ""
67
+
68
+ #: inc/dnd-upload-cf7.php:336
69
+ msgid "Required field"
70
+ msgstr ""
71
+
72
+ #: inc/dnd-upload-cf7.php:341
73
+ msgid "Name"
74
+ msgstr ""
75
+
76
+ #: inc/dnd-upload-cf7.php:345
77
+ msgid "File size limit (bytes)"
78
+ msgstr ""
79
+
80
+ #: inc/dnd-upload-cf7.php:349
81
+ msgid "Acceptable file types"
82
+ msgstr ""
83
+
84
+ #: inc/dnd-upload-cf7.php:353
85
+ msgid "Max file upload"
86
+ msgstr ""
87
+
88
+ #: inc/dnd-upload-cf7.php:357
89
+ msgid "Id attribute"
90
+ msgstr ""
91
+
92
+ #: inc/dnd-upload-cf7.php:361
93
+ msgid "Class attribute"
94
+ msgstr ""
95
+
96
+ #: inc/dnd-upload-cf7.php:372
97
+ msgid "Insert Tag"
98
+ msgstr ""
99
+
100
+ #: inc/dnd-upload-cf7.php:376
101
+ #, php-format
102
+ msgid ""
103
+ "To attach the file uploaded through this field to mail, you need to insert "
104
+ "the corresponding mail-tag (%s) into the File Attachments field on the Mail "
105
+ "tab."
106
+ msgstr ""
languages/dnd-upload-cf7-nl_NL.mo ADDED
Binary file
languages/dnd-upload-cf7-nl_NL.po ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Drag and Drop Multiple File Upload - Contact Form 7\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-03-18 14:39+0000\n"
6
+ "PO-Revision-Date: 2019-03-18 14:43+0000\n"
7
+ "Last-Translator: admin <info@aachen-webdesigner.de>\n"
8
+ "Language-Team: Dutch\n"
9
+ "Language: nl-NL\n"
10
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.2.1; wp-5.1.1"
16
+
17
+ #: inc/dnd-upload-cf7.php:194
18
+ msgid "Browse Files"
19
+ msgstr "Blader door de bestanden"
20
+
21
+ #: inc/dnd-upload-cf7.php:519
22
+ msgid "Browse Text"
23
+ msgstr ""
24
+
25
+ #: inc/dnd-upload-cf7.php:192
26
+ msgid "Drag & Drop Files Here"
27
+ msgstr ""
28
+
29
+ #: inc/dnd-upload-cf7.php:511
30
+ msgid "Drag & Drop Text"
31
+ msgstr ""
32
+
33
+ #. Name of the plugin
34
+ msgid "Drag and Drop Multiple File Upload - Contact Form 7"
35
+ msgstr ""
36
+
37
+ #: inc/dnd-upload-cf7.php:524
38
+ msgid "Error Message"
39
+ msgstr ""
40
+
41
+ #: inc/dnd-upload-cf7.php:532
42
+ msgid "Failed to Upload"
43
+ msgstr ""
44
+
45
+ #: inc/dnd-upload-cf7.php:528
46
+ msgid "File exceeds server limit"
47
+ msgstr ""
48
+
49
+ #: inc/dnd-upload-cf7.php:536
50
+ msgid "Files too large"
51
+ msgstr ""
52
+
53
+ #. Author of the plugin
54
+ msgid "Glen Don L. Mongaya"
55
+ msgstr ""
56
+
57
+ #. Author URI of the plugin
58
+ msgid "http://codedropz.com"
59
+ msgstr ""
60
+
61
+ #. URI of the plugin
62
+ msgid "https://profiles.wordpress.org/glenwpcoder"
63
+ msgstr ""
64
+
65
+ #: inc/dnd-upload-cf7.php:540
66
+ msgid "Invalid file Type"
67
+ msgstr ""
68
+
69
+ #: inc/dnd-upload-cf7.php:309
70
+ msgid "multiple file upload"
71
+ msgstr ""
72
+
73
+ #: inc/dnd-upload-cf7.php:193
74
+ msgid "or"
75
+ msgstr "ofwel"
76
+
77
+ #: inc/dnd-upload-cf7.php:502
78
+ msgid "Send Attachment as links?"
79
+ msgstr ""
80
+
81
+ #: inc/dnd-upload-cf7.php:50
82
+ msgid "The uploaded file exceeds the maximum upload size of your server."
83
+ msgstr ""
84
+
85
+ #. Description of the plugin
86
+ msgid ""
87
+ "This simple plugin create Drag & Drop or choose Multiple File upload in your "
88
+ "Confact Form 7 Forms."
89
+ msgstr ""
90
+
91
+ #: inc/dnd-upload-cf7.php:53
92
+ msgid "Uploaded file is not allowed for file type"
93
+ msgstr ""
94
+
95
+ #: inc/dnd-upload-cf7.php:52
96
+ msgid "Uploaded file is too large"
97
+ msgstr ""
98
+
99
+ #: inc/dnd-upload-cf7.php:507
100
+ msgid "Uploader Info"
101
+ msgstr ""
102
+
103
+ #: inc/dnd-upload-cf7.php:51
104
+ msgid "Uploading a file fails for any reason"
105
+ msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Donate link : http://codedropz.com/donation
3
  Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
4
  Requires at least: 3.0.1
5
- Tested up to: 5.0
6
- Stable tag: 1.2.3
7
  Requires PHP: 5.2.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -85,6 +85,12 @@ To install this plugin see below:
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
88
  = 1.2.3 =
89
  * Added - Multiple Drag and Drop fields in a form
90
  * Added - Options in admin for error message
@@ -127,6 +133,9 @@ This version fixed minor issues and bugs.
127
  = 1.2.2 =
128
  Added some usefull features.
129
 
 
 
 
130
  == Donations ==
131
 
132
  Would you like to support the advancement of this plugin? [Donate](http://codedropz.com/donation)
2
  Donate link : http://codedropz.com/donation
3
  Tags: drag and drop, contact form 7, ajax uploader, multiple file, upload, contact form 7 uploader
4
  Requires at least: 3.0.1
5
+ Tested up to: 5.2
6
+ Stable tag: 1.2.4
7
  Requires PHP: 5.2.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
85
 
86
  == Changelog ==
87
 
88
+ = 1.2.4 =
89
+ * Added - Support WPML using .po and .mo files
90
+ * Added - Added to support multilingual ( using Poedit )
91
+ * 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/)
92
+ * Added - Disable 'submit' button while upload is on progress...
93
+
94
  = 1.2.3 =
95
  * Added - Multiple Drag and Drop fields in a form
96
  * Added - Options in admin for error message
133
  = 1.2.2 =
134
  Added some usefull features.
135
 
136
+ = 1.2.4 =
137
+ Added new features and fixes.
138
+
139
  == Donations ==
140
 
141
  Would you like to support the advancement of this plugin? [Donate](http://codedropz.com/donation)