You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/storage-blob-static-website-how-to.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,6 +157,9 @@ This example assumes that you're running commands from Azure Cloud Shell session
157
157
az storage blob upload-batch -s <source-path> -d \$web --account-name <storage-account-name>
158
158
```
159
159
160
+
> [!NOTE]
161
+
> If the browser prompts users users to download the file instead of rendering the contents, you can append `--content-type 'text/html; charset=utf-8'` to the command.
162
+
160
163
* Replace the `<storage-account-name>` placeholder value with the name of your storage account.
161
164
162
165
* Replace the `<source-path>` placeholder with a path to the location of the files that you want to upload.
> If the browser prompts users users to download the file instead of rendering the contents, you can append `-Properties @{ ContentType = "text/html; charset=utf-8";}` to the command.
186
+
181
187
* Replace the `<path-to-file>` placeholder value with the fully qualified path to the file that you want to upload (For example: `C:\temp\index.html`).
182
188
183
189
* Replace the `<blob-name>` placeholder value with the name that you want to give the resulting blob (For example: `index.html`).
0 commit comments