Skip to content

A very basic console application that updates the files in a specific Azure Blob Storage account based on the file extension.

License

Notifications You must be signed in to change notification settings

couellet/azurestorage-contenttype-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This console application is to update Azure Blob Storage files content type. By default a file uploaded will have application/octet-stream as content type. This can cause some issues when you need these files via a CDN or something like this for a web application.

Usage

Basic use case, all files in every containers will be updated.

AzureStorageContentTypeUpdater.exe --account ACCOUNT_NAME --key KEY

If you need to update files from a particulair container, you can use the --container switch.

AzureStorageContentTypeUpdater.exe --account ACCOUNT_NAME --key KEY --container public

Switches

a or account

This is the switch to specify with azure blob storage account you want to use.

-a ACCOUNT_NAME or --account ACCOUNT_NAME


k or key

This is the switch to specify the access key for your azure blob storage account.

-k ACCESS_KEY or --key ACCESS_KEY


c or container

This is an optional switch if you need to specify a particular container in the azure blob storage account

-c CONTAINER or --container CONTAINER


lowercase

This optional switch can be used to make sure blob paths are in lower case. File names will be untouched by the paths will be in lowercase. For example, Scripts/Test.js will become scripts/Test.js.

--lowercase true

About

A very basic console application that updates the files in a specific Azure Blob Storage account based on the file extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages