cheminfo / rest-on-couch

Interface to couchDB with user rights management
https://github.com/cheminfo/rest-on-couch/blob/main/API.md
MIT License
13 stars 2 forks source link

be able to change filename ? #141

Closed lpatiny closed 6 years ago

lpatiny commented 6 years ago

Currently changing the filename is relatively difficult. You need to skip the attachment and add a new attachment.

Would it make sense to have also the property

result.filename that by default has as value ctx.filename ?

This would allow to easily make filename unique as well by adding timestamp and simplify the example.

I also have some cases when the file is abc.jdx.1234 and it should be renamed in abc.X.jdx (where X can be found in the jcamp)

targos commented 6 years ago

duplicate of https://github.com/cheminfo/rest-on-couch/issues/130