digitalnodecom / node-red-contrib-generic-s3

Generic S3 nodes for use in Node-RED
https://www.npmjs.com/package/@digitalnodecom/node-red-contrib-generic-s3
Apache License 2.0
3 stars 5 forks source link

Feature upsert objects #13

Closed rristov60 closed 1 year ago

rristov60 commented 1 year ago

This PR closes #8. Upon item insertion, first MD5 hash is calculated for the body of the item, and it is compared to the current ETag for the object if the object already exists. If they don't match, it means that the contents of the file are changed and the object is put. If versioning is enabled, and the object exists, new version of it will be created. This is both for Put Object and Put Objects. Please note that this is valid only for objects that have MD5 ETags. If the ETags are not MD5, each time the object will be inserted. More details about ETags can be found here.