Monday, May 30, 2016

Uploading files directly to Azure using a jquery plugin

Based off of Gaurav Mantri's code "Uploading Large Files in Windows Azure Blob Storage Using Shared Access Signature, HTML, and JavaScript". I have extended his code and wrapped it up in a jquery plugin. It includes a simple UI, support for uploading multiple files and drag and drop. It also allows the exclusion of files based on their extensions.


     $(document).ready(function () {  
         extensions: ".jpg|.jpeg|.png",  
         sasUri: ""  
       <div id="azureUpload"></div>  

the code for the js and css files are here:

the code for the sample project is here: