bptlab / chor-js-demo

A demo showcasing the chor-js BPMN 2.0 choreography diagram modeler.
23 stars 10 forks source link

Keep file name when uploading and downloading #39

Closed LeonBein closed 4 years ago

LeonBein commented 4 years ago

Expected behavior:

As a choreography developer, when I have created a choreography and named its file    and I upload the file again to adapt some elements    and then download the changed file I expect it to have its original file name, so I can paste it back to the folder I uploaded it from and replace the old file

Actual behavior:

The file is simply called 'diagram.bpmn'

jan-ladleif commented 4 years ago

Thanks for the suggestion, makes sense! 👍

Minor caveat: in the current solution, SVGs are now named something like diagram.bpmn.svg, but I think that's fine. Did not want to implement a huge string manipulation thing.