SORACOMFileUpload

Description

The SORACOM File Upload component allows for sending files to SORACOM's Harvest.

Preliminary Setup on SORACOM's Side

Please assign the target SIM card to a SIM group in SORACOM's management console and enable Harvest Files in the settings.

※A SORACOM Air SIM card or SORACOM Arc is required to connect Gravio to the internet.
※For operations on SORACOM's management console, please contact SORACOM directly.

Input and Output Payload

Input PayloadDescription
cv.PayloadWhen the input property is a payload, refer to the Harvest documentation for usable formats
Output PayloadDescription
cv.PayloadIf the HTTP response's Content-Type header is "application/json", it is stored as JSON; if "text/*" and a charset (utf-8/shift_jis/euc-jp/iso-2022-jp) is specified, it is stored as a string; otherwise, it is stored as a byte array.

Component Properties

Property NameDescription
InputPayload or file name
File NameThe file name to send when the input property is a file name
Content-TypeHTTP header's Content-Type
Harvest Folder NameThe folder name on Harvest where the file will be saved. If empty, it is saved in the root folder
Harvest File NameThe file name on Harvest where the file will be saved
TimeoutHTTP request response timeout value

Component Variables

Component VariableDescription
cv.PayloadBody of the response
cv.StatusCodeResult of the request
cv.HeadersResponse headers
cv.ContentLengthLength of the response

Placeholders Usable in Harvest Folder Name

The following placeholders can be used in the Harvest folder name:

PlaceholderDescription
:imsi:The IMSI of the IoT SIM
:time:The UNIX time (in milliseconds) when the file was sent

For how to use these placeholders, refer to the following link.
https://users.soracom.io/en-us/docs/harvest/enable-files/