> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/crm/communication/channels/communication-channels-media/sample-flows.md ## Article Content: # Communication Channels Media: Sample Flows This article presents possible use cases and sample flows that you can support. It provides a useful starting point as you plan your implementation. ## Upload media file and send in message If you want to share an image or document through a communication channel, you can upload the file to the Media Manager and include it in a message. To upload a media file and send it in a message: 1. Call [Generate File Upload URL](https://dev.wix.com/docs/api-reference/crm/communication/channels/communication-channels-media/generate-file-download-url.md) with the specified `fileName` and `mimeType` to retrieve a secure upload URL. 2. Upload the file to the `uploadUrl`, returned by the Generate File Upload URL method, using a standard HTTP POST request. See the [Upload API](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api.md) for an example on how to upload a file to the Media Manager. 3. Call [Send Message](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/send-message.md) to send a basic message with the uploaded media file. Specify the file metadata (file ID, display name, and thumbnail URL) returned in the Upload [response](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api.md#response). ## Monitor storage usage To prevent upload failures and inform Wix users about their storage limits, you can monitor a site's storage quota usage. To monitor storage usage: 1. Call [Get Storage Quota](https://dev.wix.com/docs/api-reference/crm/communication/channels/communication-channels-media/get-storage-quota.md) to retrieve current usage and total quota limits. 2. Calculate the remaining storage available by subtracting `totalUsage` from `totalQuota`. 3. Display storage information to Wix users or implement warnings when approaching limits. 4. In your file upload flow, handle upload failures that occur when storage limits exceed the quota, and inform Wix users they need to free up space or upgrade their storage plan.