roberto-mardeni / dotnet-secure-file-upload

Demonstrates how to implement a secure file upload form/api and adding validation/virus protection mechanisms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotnet-secure-file-upload

Demonstrates how to implement a secure file upload form/api and adding validation/virus protection mechanisms

Overview

This repository demonstrates how to integrate the following mechanisms to secure file uploads:

It also demonstrates the difference of using local storage vs Azure Blob Storage.

Last but not least, demonstrates how to turn a synchronous and blocking process in a .Net Framework application to an asynchrounous one using Azure Functions and Azure Service Bus Messaging taking into account the security measures described above.

Usage

Included is a GitHub Workflow that builds and deploys all resources needed in Azure, to make this work you will need the following secrets:

  • AZURE_CREDENTIALS, SDK credentials to create a resource group and deploy an ARM template to it.
  • AZURE_SUBSCRIPTION_ID, the ID of the Azure Subscription
  • CLOUDMERSIVEVIRUSSCANAPIKEY, a valid Key for the Cloudmersive Virus Scan API

About

Demonstrates how to implement a secure file upload form/api and adding validation/virus protection mechanisms

License:MIT License


Languages

Language:JavaScript 86.7%Language:C# 9.3%Language:ASP.NET 2.4%Language:PowerShell 1.5%Language:CSS 0.1%