Remove files from dropzone

Hello,

does anyone know why the remove method of the dropzone component doesn’t work? Just doesn’t do anything, no error on the console. Tooltip suggests this is for removing single files from the files array (same like remove file for the S3 component, which works fine). Reset method works fine though. Also doesn’t matter whether I bind to my repeater’s index or just add a 1 for example just to see if it works.

Thanks a lot
Sebastian

Did not even know that this option existed.
From the help tooltip, its asking for an ID. Not sure how to get ID of files selected… would have tried $index like you have. But that does not work as you say.

Do you see any errors in console?

Could be a bug, or we don’t know the right input yet.

Hi sid, thanks for the comment. No, no errors in the console as mentioned. I’ve decided to go with S3 for my app though, but keeps me bothered because I don’t know if it’s my fault or a bug.

Thanks
Sebastian

Anyone ever figure out how to get the ID for the file to be removed?

used dmx-on:click="input1.remove(id)"

change to id inplace of $index manually, it worked for me.

id is not available to select from given options.

1 Like