You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -55,13 +55,13 @@ The diagram shows a typical flow of a file sharing scenario for both upload and
55
55
56
56

57
57
58
-
## Setup File Storage using Azure Blob
58
+
## Set up file storage using Azure Blob
59
59
60
60
You can follow the tutorial [Upload file to Azure Blob Storage with an Azure Function](/azure/developer/javascript/how-to/with-web-app/azure-function-file-upload) to write the backend code required for file sharing.
61
61
62
62
Once implemented, you can call this Azure Function inside the `uploadHandler` function to upload files to Azure Blob Storage. For the remaining of the tutorial, we assume you have generated the function using the tutorial for Azure Blob Storage linked previously.
63
63
64
-
### Securing your Azure Blob Storage Container
64
+
### Securing your Azure Blob storage container
65
65
66
66
This tutorial assumes that your Azure blob storage container allows public access to the files you upload. Making your Azure storage containers public isn't recommended for real world production applications.
67
67
@@ -71,7 +71,7 @@ The downloadable [GitHub sample](https://github.com/Azure-Samples/communication-
71
71
72
72
UI Library requires a React environment to be set up. Next we do that. If you already have a React App, you can skip this section.
73
73
74
-
### Set Up React App
74
+
### Set up react app
75
75
76
76
We use the create-react-app template for this quickstart. For more information, see: [Get Started with React](https://reactjs.org/docs/create-a-new-react-app.html)
77
77
@@ -86,7 +86,7 @@ cd ui-library-quickstart-composites
86
86
At the end of this process, you should have a full application inside of the folder `ui-library-quickstart-composites`.
87
87
For this quickstart, we're modifying files inside of the `src` folder.
88
88
89
-
### Install the Package
89
+
### Install the package
90
90
91
91
Use the `npm install` command to install the beta Azure Communication Services UI Library for JavaScript.
## Configure upload method to use Azure Blob Storage
226
+
## Configure upload method to use Azure Blob storage
227
227
228
228
To enable Azure Blob Storage upload, we modify the `uploadFileToAzureBlob` method we declared previously with the following code. You need to replace the Azure Function information to upload files.
By default, the file `url` provided through `notifyUploadCompleted` method is used to trigger a file download. However, if you need to handle a download in a different way, you can provide a custom `downloadHandler` to ChatComposite. Next, we modify the `fileDownloadHandler` that we declared previously to check for an authorized user before allowing to download the file.
0 commit comments