Many web application needs end-users to upload files for processing. And these files need to be stored in a persisted storage. One common practice is, developers write code to upload the file and save it on the webserver itself. This approach is OK if the file size is small and/or smaller number of uploads. Recommended approach is, let the browse upload the files to Azure Storage directly without need to talk to webserver. This option, frees up webserver for other business processing.
For browser to talk to Azure Storage, instead of exposing storage connection string, we can use SAS Key (Share Access Security). SAS key is valid only for limited time and has specific permissions like write but not read or list. For more details on SAS keys please see here
Here is quick sample to upload blob files to Azure Storage from a browser directly and then process it the server side.
Select file to upload to blob
Upload to blob
Do server side processing
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.