Skip to content

FileId is not removed when removing file via the UI (click on remove) #47

@pfmziota

Description

@pfmziota

the problem :

When removing the file via a click on 'Remove' and submitting the form, the target document still contains the id of the removed file.

my solution :

As a quick fix, I have overwritten the fileId helper as follows

Template.afFileUpload.helpers({
    [...]
    fileId() {
        return Template.instance().fileId.get() /* || this.value */; // <== commenting this part solves the issue
    },
    [...]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions