symphonicc / multer-azure-blob-storage

ES6 & Typescript friendly multer storage engine for Azure's blob storage.
MIT License
19 stars 25 forks source link

way to pass metadata #1

Closed jakubzloczewski closed 6 years ago

jakubzloczewski commented 6 years ago

Hi, thanks for sharing your work. It's great!

I'm curious if there is any possibility to write metadata while uploading file or do you have any plans to make it possible? I imagine it would work similar to name resolver.

Best, Jakub

Sliverb commented 6 years ago

You are very welcome :)

I never thought about that but that should be relatively straight fwd. What kind of metadata are you thinking?

jakubzloczewski commented 6 years ago

I was thinking about metadata just like strings, Dates etc. In my case I need to store some references to objects from database.

Sliverb commented 6 years ago

Sounds good. I will get experimenting on this.

Sliverb commented 6 years ago

Sorry on being delayed on this. got pulled in on a hot project.

Sliverb commented 6 years ago

@jakubzloczewski This should be in. Its implemented similar to the name resolver. This allows you to add custom metadata per file. If all the files will have the same metadata, then you can just include the object list too (simpler).

Hope this helps and sorry for the delay in implementing this