diff --git a/js/jquery.cloudinary.js b/js/jquery.cloudinary.js
index <HASH>..<HASH> 100644
--- a/js/jquery.cloudinary.js
+++ b/js/jquery.cloudinary.js
@@ -400,11 +400,20 @@
     

         if (data.cloudinaryField && data.form.length > 0) {

           var upload_info = [data.result.resource_type, data.result.type, data.result.path].join("/") + "#" + data.result.signature;  

-          var field = $(data.form).find('input[name="' + data.cloudinaryField + '"]');

-          if (field.length > 0) {

-            field.val(upload_info);

-          } else {

+          var multiple = $(e.target).prop("multiple");

+          var add_field = function() {

             $('<input></input>').attr({type: "hidden", name: data.cloudinaryField}).val(upload_info).appendTo(data.form);

+          };

+          

+          if (multiple) {

+              add_field();

+          } else {          

+            var field = $(data.form).find('input[name="' + data.cloudinaryField + '"]');

+            if (field.length > 0) {

+              field.val(upload_info);

+            } else {

+              add_field();

+            }

           }

         }

         $(e.target).trigger('cloudinarydone', data);
Better handling of fieldupload fields with multiple true