Skip to content

Commit a4f6b37

Browse files
diberryCopilot
andauthored
File Upload SAS tutorial (#1033)
* Dependencies updated - basics works * HTTP test, package.json version, URL construction * client eslint 9 * Update azure-upload-file-to-storage/app/src/App.tsx Co-authored-by: Copilot <[email protected]> * Update azure-upload-file-to-storage/app/src/App.tsx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 9bda370 commit a4f6b37

File tree

17 files changed

+7924
-105
lines changed

17 files changed

+7924
-105
lines changed

.devcontainer/azure-upload-file-to-storage/devcontainer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Tutorial: Upload file to storage with SAS token",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-18",
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-20",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
"features": {
@@ -29,8 +29,9 @@
2929
"extensions": [
3030
"ms-azuretools.vscode-azurefunctions",
3131
"ms-azuretools.vscode-azurestaticwebapps",
32-
"ms-azuretools.vscode-azurestorage"
33-
]
32+
"ms-azuretools.vscode-azurestorage",
33+
"humao.rest-client"
34+
]
3435
}
3536
}
3637
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,4 @@ FodyWeavers.xsd
411411

412412
.DS_Store
413413
**/.DS_Store
414+
**/.eslintcache

azure-upload-file-to-storage/api/.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

azure-upload-file-to-storage/api/.eslintrc

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import tseslint from "typescript-eslint";
4+
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{files: ["**/*.{js,mjs,cjs,ts}"]},
9+
{languageOptions: { globals: globals.browser }},
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
];
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POST http://localhost:7071/api/sas?file=test&permissions=w&container=upload&timerange=5 HTTP/1.1
2+
content-type: application/json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
GET http://localhost:7071/api/status HTTP/1.1
2+
content-type: application/json

0 commit comments

Comments
 (0)