Hi, I couldn’t find a solution for this, so I thought a new topic is appropriate.
I’ve build an image upload plugin, which works well so far. The widget decorators get updated to show the upload progress and are removed when the image is fully uploaded or the upload fails. But if I drop multiple files, the decorators are created at the same cursor position (or index, as described in the guide). So as the progress is updated, the decorators will jump around the same position and won’t keep order (DecorationSet). Is there a solution to this problem?
Right now I’m experimenting with node decorators. But that means I have to add a node first, add the node decorator to that new node, style it in a different way and update or remove it after upload/failure. Is that a viable solution? And how do I handle the history in that case? If an upload fails for example, I don’t want the user to be able to get an empty image node on undo.