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
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/file-sharing-tutorial-acs-chat.md
+28-32Lines changed: 28 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,8 @@ In an Azure Communication Services Chat, we can enable file sharing between comm
21
21
22
22
In this tutorial, we're configuring the Azure Communication Services UI Library Chat Composite to enable file sharing. The UI Library Chat Composite provides a set of rich components and UI controls that can be used to enable file sharing. We're using Azure Blob Storage to enable the storage of the files that are shared through the chat thread.
23
23
24
-
>[!IMPORTANT]
25
-
>Azure Communication Services doesn't provide a file storage service. You need to use your own file storage service for sharing files. For the pupose of this tutorial, we're using Azure Blob Storage.**
26
-
24
+
> [!IMPORTANT]
25
+
> Azure Communication Services doesn't provide a file storage service. You need to use your own file storage service for sharing files. For the pupose of this tutorial, we're using Azure Blob Storage.\*\*
27
26
28
27
## Download code
29
28
@@ -43,7 +42,7 @@ This tutorial assumes that you already know how to set up and run a Chat Composi
43
42
The UI Library Chat Composite supports file sharing by enabling developers to pass the URL to a hosted file that is sent through the Azure Communication Services chat service. The UI Library renders the attached file and supports multiple extensions to configure the look and feel of the file sent. More specifically, it supports the following features:
44
43
45
44
1. Attach file button for picking files through the OS File Picker
46
-
2. Configure allowed file extensions.
45
+
2. Configure allowed file extensions.
47
46
3. Enable/disable multiple uploads.
48
47
4. File Icons for a wide variety of file types.
49
48
5. File upload/download cards with progress indicators.
@@ -67,7 +66,7 @@ This tutorial assumes that your Azure blob storage container allows public acces
67
66
68
67
For downloading the files, you upload to Azure blob storage, you can use shared access signatures (SAS). A shared access signature (SAS) provides secure delegated access to resources in your storage account. With a SAS, you have granular control over how a client can access your data.
69
68
70
-
The downloadable [GitHub sample](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/ui-library-filesharing-chat-composite) showcases the use of SAS for creating SAS URLs to Azure Storage contents. Additionally, you can [read more about SAS](../../storage/common/storage-sas-overview.md).
69
+
The downloadable [GitHub sample](https://github.com/Azure-Samples/communication-services-javascript-quickstarts/tree/main/ui-library-filesharing-chat-composite) showcases the use of SAS for creating SAS URLs to Azure Storage contents. Additionally, you can [read more about SAS](../../storage/common/storage-sas-overview.md).
71
70
72
71
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
72
@@ -92,7 +91,7 @@ Use the `npm install` command to install the beta Azure Communication Services U
return { errorMessage:'You don’t have permission to download this file.' };
315
+
return { errorMessage:"You don’t have permission to download this file." };
319
316
} else {
320
-
// If this function returns a Promise that resolves a URL string,
321
-
// the URL is opened in a new tab.
317
+
// If this function returns a Promise that resolves a URL string,
318
+
// the URL is opened in a new tab.
322
319
returnnewURL(fileData.url);
323
320
}
324
-
}
321
+
};
325
322
```
326
323
327
324
Download errors are displayed to users in an error bar on top of the Chat Composite.
328
325
329
326

330
327
331
-
332
328
## Clean up resources
333
329
334
330
If you want to clean up and remove a Communication Services subscription, you can delete the resource or resource group. Deleting the resource group also deletes any other resources associated with it. You can find out more about [cleaning up Azure Communication Services resources](../quickstarts/create-communication-resource.md#clean-up-resources) and [cleaning Azure Function Resources](../../azure-functions/create-first-function-vs-code-csharp.md#clean-up-resources).
0 commit comments