Upload files from your devices to the cloud

This topic applies to administrators and device developers.

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.

Prerequisites

You must be an administrator in your IoT Central application to configure file uploads.

You need an Azure storage account and container to store the uploaded files. If you don't have an existing storage account and container to use, create a new storage account in the Azure portal.

Configure device file uploads

To configure device file uploads:

  1. Navigate to the Administration section in your application.

  2. Select Device file upload.

  3. Select the storage account and container to use. If the storage account is in a different Azure subscription from your application, enter a storage account connection string.

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

  5. Select Save. When the status shows Configured, you're ready to upload files from devices.

Configure file upload in application

Disable device file uploads

If you want to disable device file uploads to your IoT Central application:

  1. Navigate to the Administration section in your application.

  2. Select Device file upload.

  3. Select Delete.

Upload a file from a device

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.

Next steps

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: