How can I display a folder structure in the IoTCentral devices Files tab ?
We need to use a folder structure to organise the files we are uploading from our IoT devices to Azure Blob Storage. To do this we are using a folder structure as shown below when uploading using the device SDK and this works fine, with the folders being created correctly inside each device IDs storage folder.
string filename = @"2024\2024_05\2024_05_01\logfile.txt";
var`` fileUploadSasUriRequest = ``new`` FileUploadSasUriRequest
{
``BlobName = filename
};
FileUploadSasUriResponse sasUri = ``await`` deviceClient.GetFileUploadSasUriAsync(fileUploadSasUriRequest);
Uri uploadUri = sasUri.GetBlobUri();
This all works fine and the correct folders are created and the files are uploaded correctly.
The problem is that the IOT Central device Files tab seems incapable of display the folder structure in the device ID folder and as a result shows no list or hierarchy of folders//files.
The files are in the correct place because you can set a filter and enter the folder path, e.g. "2024\2024_05\2024_05_01" in the filter field and a list of files with their full folder paths will be shown.
Is there a way to update the Files component such that the hierarchical folder structure will be shown.
Thanks