Skip to content

Commit 7904264

Browse files
authored
Update fileUpload.js
Corrected issue where the ID of the removed file stayed in the hidden input after removal.
1 parent 32b604e commit 7904264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/fileUpload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Template.afFileUpload.helpers({
8484
return Template.instance().currentUpload.get();
8585
},
8686
fileId() {
87-
return Template.instance().fileId.get() || this.value;
87+
return Template.instance().fileId.get();
8888
},
8989
uploadedFile() {
9090
const template = Template.instance();

0 commit comments

Comments
 (0)