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/iot-central/core/howto-configure-file-uploads.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
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.
4
4
services: iot-central
5
5
author: dominicbetts
6
6
ms.author: dobett
7
-
ms.date: 06/22/2022
7
+
ms.date: 08/25/2022
8
8
ms.topic: how-to
9
9
ms.service: iot-central
10
10
@@ -14,6 +14,8 @@ ms.service: iot-central
14
14
15
15
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.
16
16
17
+
Optionally, you can manage and preview files uploaded by your devices inside your IoT Central application.
18
+
17
19
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)
18
20
19
21
## Prerequisites
@@ -34,6 +36,8 @@ To configure device file uploads:
34
36
35
37
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.
36
38
39
+
1. To enable users to view and manage uploaded files inside IoT Central, set **Enable access** to **On**.
40
+
37
41
1. Select **Save**. When the status shows **Configured**, you're ready to upload files from devices.
38
42
39
43
:::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:
48
52
49
53
1. Select **Delete**.
50
54
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
+
51
59
## Upload a file from a device
52
60
53
61
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/).
54
62
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
+
55
83
## Next steps
56
84
57
85
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:
0 commit comments