symphonicc / multer-azure-blob-storage

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

Add contentSettings to upload (fileType and disposition) #11

Closed markmblc closed 5 years ago

markmblc commented 5 years ago

Adds contentSettings object to createWriteStreamToBlockBlob call. Sets the blob's contentType to the file's mime type and defaults the disposition to 'inline' allowing the file to be streamed/embedded rather than downloading.

To set the blob to download by default, send a request to the proper endpoint, setting the disposition to 'attachment'.

https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties

mebibou commented 5 years ago

@Sliverb could this be merged?

Sliverb commented 5 years ago

Sorry for the delay. It has been merged. Awesome addition