I am having a problem with File Upload device sample

Viraj Kamat 40 Reputation points
2023-07-27T10:58:08.2833333+00:00

Hello , I have followed the instructions as mentioned in Microsoft documentation for uploading a file. https://learn.microsoft.com/en-us/samples/azure-samples/iot-central-file-upload-device/iotc-file-upload-device/
The sample program is also working and sending telemetry data to the device instance on IoT Central. On pressing RUN the datafile.json file is also getting uploaded to the storage account. I can see the new files in a container in the Azure Storage Account container. In the Device file storage section in IoT Central I have added configured the cloud storage and mention all necessary details. It is showing "Your cloud storage is properly configured" message and I have enabled access.
Despite all this in the Files section it is showing 'No files found'. Can someone tell me the way forward?

User's image

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
344 questions
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 27,401 Reputation points
    2023-08-24T16:32:42.2733333+00:00

    Viraj Kamat Thanks for waiting so long on this issue.
    After reviewing the issue, I was able to reproduce the same and found that you are using different name than your deviceid for the container folder name.

    The files must be uploaded to a folder with the same name as the device ID. This is by design.

    Since the IoT Device SDK uploads the files for each device into their own folder and the files view within IoT Central is per device. 

    If you are following the doc, and files should uploaded by the device SDK under the device id folder in the Storage account.

    I would suggest, you please check below and let me know if you have any further queries.

    My DeviceID is ashoktestdevice4 as shown below.
    User's image

    In your case, make sure you are using the correct names. I see two different names configured there while providing storage account details.

    I have followed the same and able to see the files.

    Storage Account:
    User's image

    Configuration of the Device File Storage:
    User's image

    Final Result:
    User's image

    Do let me know if that helps or have any other queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further queries do let us know.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful