feathersjs-ecosystem / feathers-blob

Feathers service for blob storage, like S3.
http://feathersjs.com
MIT License
92 stars 32 forks source link

Use filename in new hash #89

Closed MarcGodard closed 3 years ago

MarcGodard commented 3 years ago

In my system, if 2 people upload the same file with different file names, I would like the blob to save it twice. Is this possible?

claustres commented 3 years ago

I am not sure why it would not be already possible. If you worry about the default behavior, which generates an ID as a content hash, you can simply bypass it by providing the id on the create operation (e.g. a uuid).

MarcGodard commented 3 years ago

Ahhh thanks, didn't know that was possible.