diff --git a/src/upload.js b/src/upload.js index 8da9b27e..95f611dc 100644 --- a/src/upload.js +++ b/src/upload.js @@ -259,6 +259,9 @@ ngFileUpload.service('UploadBase', ['$http', '$q', '$timeout', function ($http, function addFieldToFormData(formData, val, key) { if (val !== undefined) { + if(Array.isArray(val) && !val.length) { + return formData.append(key, ''); + } if (angular.isDate(val)) { val = val.toISOString(); }