Code Monkey home page Code Monkey logo

valetkeyupload's Introduction

Valet Key Upload

This is a demo project that allows async multiple uploads to Azure BLOB Storage using the Valet Key Design Pattern. Read my blog at hexmaster.nl for more information about the background of the Valet Key Design Pattern.

About this project, the backend is written in ASP.NET Core 2.2 (C#) and Visual Studio 2019. The backend connects to a storage account (set the connection string in appsettings.json to your own storage account). The API contains one endpoint and generates a Secure Access Token to a blob on Azure BLOB Storage.

The front-end displays a file select box (multi-select is allowed by-the-way). For each file selecter, it will call the backend API and request access to 'a' BLOB. Then the front-end will upload the selected files directly to Azure BLOB storage.

The front-end system is written using Angular (8). Note you're not tied to Angular, it's just a nice way to show how to upload files to BLOB storage directly.

Note I used some code from Stuart to help me get the actual upload working.

In order to run the front-end project, download and install NodeJS (10).

Open a console window navigate to the front-end project (containing package.json) and type

npm i @angular/cli -g
npm i
ng serve -o

valetkeyupload's People

Contributors

nikneem avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.