A lightweight JS and HTML page to access, upload and delete from an Azure File Storage
npm install
- update the values in the
simpleazurefileexplorer.html
file for yoursasToken
andserviceGroup
url- use the documentation from MS for more details, in this case we are using the
file
service endpoint. - you will also need to allow the source origin in the
Azure Storage Account
->CORS
->File Service
->Allowed Origins
with (at least in my case) allmethods
allowed.
- use the documentation from MS for more details, in this case we are using the
gulp
- will execute a
clean
on the/dist
directory, then compile thescripts
and minify the html via thepages
task (seegulpfile.js
)
- will execute a
- the file uploader itself was a version of blueimp's jQuery fileuploader with a few very specific overrides to work with
Azure Storage
- azure-sdk-for-js was used for the main CRUD portions of the module
- a SPA branch exists for those who do not want or need full page reloads on clicks
- the original need for this was a
CRM
integration where the initial values forsasToken
,serviceGroup
,share
anddirectory
are fed in thru adata:{...}
query parameter and then the page was merely updated vs reloaded sinceCRM
did not like full page reloads. - this branch also features a much more trimmed down styling so it fits more into the form factor of things like
CRM
- the original need for this was a