diff --git a/lib/client/fileUpload.js b/lib/client/fileUpload.js index aa19286..7948873 100644 --- a/lib/client/fileUpload.js +++ b/lib/client/fileUpload.js @@ -105,6 +105,9 @@ Template.afFileUpload.events({ 'click [data-remove-file]'(e, template) { e.preventDefault(); template.fileId.set(false); + if (template.data.value) { + delete template.data.value; + } try { this.remove(); } catch (error) { diff --git a/package.js b/package.js index b11644a..27f73fc 100644 --- a/package.js +++ b/package.js @@ -2,7 +2,7 @@ Package.describe({ name: 'ostrio:autoform-files', summary: 'File upload for AutoForm using ostrio:files', description: 'File upload for AutoForm using ostrio:files', - version: '2.1.3', + version: '2.1.4', git: 'https://github.com/VeliovGroup/meteor-autoform-file.git' });