Skip to content

Commit 84029bb

Browse files
committed
Edits
1 parent bc674b2 commit 84029bb

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

articles/iot-hub/how-to-file-upload.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ These files are typically batch processed in the cloud, using tools such as [Azu
3131
For more information, see:
3232

3333
* [Overview of file uploads with IoT Hub](iot-hub-devguide-file-upload.md)
34-
* [Configure IoT Hub file uploads](iot-hub-configure-file-upload.md)
35-
* [Azure Blob Storage documentation](../storage/blobs/storage-blobs-introduction.md)
36-
* [Azure Blob Storage API reference](../storage/blobs/reference.md)
37-
* [Azure IoT SDKs](iot-hub-devguide-sdks.md)
34+
* [Configure IoT Hub file uploads using the Azure portal](iot-hub-configure-file-upload.md)
35+
* [Introduction to Azure Blob Storage](../storage/blobs/storage-blobs-introduction.md)
36+
* [Azure IoT Hub SDKs](iot-hub-devguide-sdks.md)
3837

3938
[!INCLUDE [iot-hub-include-x509-ca-signed-file-upload-support-note](../../includes/iot-hub-include-x509-ca-signed-file-upload-support-note.md)]
4039

includes/iot-hub-howto-file-upload-dotnet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Follow this procedure to upload a file from a device to IoT Hub:
3232
Supply the IoT Hub primary connection string to [DeviceClient](/dotnet/api/microsoft.azure.devices.client.deviceclient) using the [CreateFromConnectionString](/dotnet/api/microsoft.azure.devices.client.deviceclient.createfromconnectionstring?#microsoft-azure-devices-client-deviceclient-createfromconnectionstring(system-string)) method. `AMQP` is the default transport protocol.
3333

3434
``` csharp
35-
static string connectionString = "{IoT Hub connection string}";
35+
static string connectionString = "{IoT Hub primary connection string}";
3636
deviceClient = DeviceClient.CreateFromConnectionString(connectionString);
3737
```
3838

3939
### Get a SAS URI from IoT Hub
4040

41-
Call [GetFileUploadSasUriAsync](/dotnet/api/microsoft.azure.devices.client.deviceclient.getfileuploadsasuriasync) to get a file upload SAS URI, which the Azure Storage SDK can use to upload a file to blob for this device.
41+
Call [GetFileUploadSasUriAsync](/dotnet/api/microsoft.azure.devices.client.deviceclient.getfileuploadsasuriasync) to get a file upload SAS URI, which the Azure Storage SDK can use to upload a file from a device to Blob Storage.
4242

4343
```csharp
4444
const string filePath = "TestPayload.txt";
@@ -144,6 +144,6 @@ while (true)
144144
}
145145
```
146146

147-
### Sample
147+
### SDK file upload sample
148148

149-
The SDK includes this [sample](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs).
149+
The SDK includes this [file upload sample](https://github.com/Azure/azure-iot-sdk-csharp/blob/main/iothub/device/samples/getting%20started/FileUploadSample/FileUploadSample.cs).

includes/iot-hub-howto-file-upload-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,6 @@ else
160160
receiver.close();
161161
```
162162

163-
## Samples
163+
### SDK file upload samples
164164

165165
There are two Java file upload [samples](https://github.com/Azure/azure-iot-sdk-java/tree/main/iothub/device/iot-device-samples/file-upload-sample/src/main/java/samples/com/microsoft/azure/sdk/iot).

includes/iot-hub-howto-file-upload-node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ throw new errors.ArgumentError('Invalid upload parameters');
6565

6666
### Upload the file to IoT hub
6767

68-
To upload a file to IoT hub:
68+
To upload a file from a device IoT hub:
6969

7070
1. Create a stream pipeline.
7171
2. Construct the blob URL.
@@ -176,6 +176,6 @@ serviceClient.open(function (err) {
176176
});
177177
```
178178

179-
### Sample
179+
### SDK file upload sample
180180

181181
The SDK includes an [upload to blob advanced](https://github.com/Azure/azure-iot-sdk-node/blob/main/device/samples/javascript/upload_to_blob_advanced.js) sample.

includes/iot-hub-howto-file-upload-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def run_sample(device_client):
162162

163163
### Sample
164164

165-
The SDK includes two samples:
165+
The SDK includes two file upload samples:
166166

167167
* [Upload to blob](https://github.com/Azure/azure-iot-sdk-python/blob/main/samples/async-hub-scenarios/upload_to_blob.py)
168168
* [Upload to blob using an X.509 certificate](https://github.com/Azure/azure-iot-sdk-python/blob/main/samples/async-hub-scenarios/upload_to_blob_x509.py)

0 commit comments

Comments
 (0)