Skip to content

Commit aa6f446

Browse files
authored
Merge pull request #209112 from dominicbetts/central-file-upload
IoT Central add file upload UX details
2 parents cd4708a + 7717ea9 commit aa6f446

File tree

6 files changed

+34
-4
lines changed

6 files changed

+34
-4
lines changed

articles/iot-central/TOC.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
href: core/howto-manage-devices-individually.md
168168
- name: Manage devices in bulk with jobs
169169
href: core/howto-manage-devices-in-bulk.md
170+
- name: Configure and use file uploads
171+
href: core/howto-configure-file-uploads.md
170172
- name: Migrate devices to IoT Hub
171173
href: core/howto-migrate-to-iot-hub.md
172174
- name: Extend your application
@@ -242,8 +244,6 @@
242244
href: core/howto-create-organizations.md
243245
- name: Customize application UI
244246
href: core/howto-customize-ui.md
245-
- name: Configure and use file uploads
246-
href: core/howto-configure-file-uploads.md
247247
- name: Integrate with DevOps
248248
href: core/howto-integrate-with-devops.md
249249
- name: Manage and monitor in the Azure portal

articles/iot-central/core/howto-configure-file-uploads.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Upload files from devices to Azure storage | Microsoft Docs
3-
description: How to configure file uploads from your devices to the cloud. After you've configured file uploads, implement file uploads on your devices.
3+
description: How to configure file uploads from your devices to the cloud. After you've configured file uploads, implement file uploads on your devices, and manage uploads in IoT Central.
44
services: iot-central
55
author: dominicbetts
66
ms.author: dobett
7-
ms.date: 06/22/2022
7+
ms.date: 08/25/2022
88
ms.topic: how-to
99
ms.service: iot-central
1010

@@ -14,6 +14,8 @@ ms.service: iot-central
1414

1515
IoT Central lets you upload media and other files from connected devices to cloud storage. You configure the file upload capability in your IoT Central application, and then implement file uploads in your device code.
1616

17+
Optionally, you can manage and preview files uploaded by your devices inside your IoT Central application.
18+
1719
To learn how to upload files by using the IoT Central REST API, see [How to use the IoT Central REST API to upload a file.](../core/howto-upload-file-rest-api.md)
1820

1921
## Prerequisites
@@ -34,6 +36,8 @@ To configure device file uploads:
3436

3537
1. If necessary, adjust the upload timeout that sets how long an upload request remains valid for. Valid values are from 1 to 24 hours.
3638

39+
1. To enable users to view and manage uploaded files inside IoT Central, set **Enable access** to **On**.
40+
3741
1. Select **Save**. When the status shows **Configured**, you're ready to upload files from devices.
3842

3943
:::image type="content" source="media/howto-configure-file-uploads/file-upload-configuration.png" alt-text="Configure file upload in application":::
@@ -48,10 +52,34 @@ If you want to disable device file uploads to your IoT Central application:
4852

4953
1. Select **Delete**.
5054

55+
## Control access to uploaded files
56+
57+
Use roles and permissions to control who can view and delete uploaded files. To learn more, see [Manage users and roles in your IoT Central application > Managing devices](howto-manage-users-roles.md#managing-devices).
58+
5159
## Upload a file from a device
5260

5361
IoT Central uses IoT Hub's file upload capability to enable devices to upload files. For sample code that shows you how to upload files from a device, see the [IoT Central file upload device sample](/samples/azure-samples/iot-central-file-upload-device/iotc-file-upload-device/).
5462

63+
## View and manage uploaded files
64+
65+
If you enabled access to files in the file upload configuration, users with the correct permissions can view and delete uploaded files.
66+
67+
> [!IMPORTANT]
68+
> All the files in the blob container folder associated with a device are visible in the **Files** view for that device. This includes any files that weren't uploaded by the device.
69+
70+
To view and delete uploaded files, navigate to the **Files** view for a device. On this page, you can see thumbnails of the uploaded files and toggle between a gallery and list view. Each file has options to download or delete it:
71+
72+
:::image type="content" source="media/howto-configure-file-uploads/file-upload-list-files.png" alt-text="Screenshot that shows the gallery view for uploaded files.":::
73+
74+
> [!TIP]
75+
> The file type is determined by the mime type assigned to the file when it was uploaded to blob storage. The default type is `binary/octet-stream`.
76+
77+
You can customize the list view by filtering based on file name and choosing the columns to display.
78+
79+
To preview the content of the file and get more information about the file, select it. IoT Central supports previews of common file types such as text and images:
80+
81+
:::image type="content" source="media/howto-configure-file-uploads/file-upload-preview.png" alt-text="Screenshot that shows a preview of a text file.":::
82+
5583
## Next steps
5684

5785
Now that you know how to configure and implement device file uploads in IoT Central, a suggested next step is to learn more device file uploads:

articles/iot-central/core/howto-manage-users-roles.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ When you define a custom role, you choose the set of permissions that a user is
140140
| Delete | View <br/> Other dependencies: View device templates and device groups |
141141
| Execute commands | Update, View <br/> Other dependencies: View device templates and device groups |
142142
| View raw data | View <br/> Other dependencies: View device templates and device groups |
143+
| View uploaded device files | View <br/> Other dependencies: View device templates and device groups |
144+
| Delete uploaded device files | View <br/> Other dependencies: View device templates and device groups |
143145
| Full Control | View, Update, Create, Delete, Execute commands, View raw data <br/> Other dependencies: View device templates and device groups |
144146

145147
**Device groups permissions**
-21.9 KB
Loading
117 KB
Loading
135 KB
Loading

0 commit comments

Comments
 (0)