Closed lpatiny closed 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 ?
result.filename
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)
duplicate of https://github.com/cheminfo/rest-on-couch/issues/130
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 valuectx.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)