File Processing

The File Processing service allows the device to upload file to a device-to-cloud endpoint. The uploaded files get stored in a a custom-managed Object Store instance provided by SAP BTP configured in the previous section Configure Object Store Service Instance.

The File service with Device model semantics is built as an extension to the existing File Service that supports file upload for Thing related entities.

Malware Scanning Service

When you upload a file, a Malware Scanning service scans the file in transit for any malware. After scanning, the scanner service alerts the user for the presence of malware, if any.
When the scanning is complete, the file service uploads the file only if it is malware free and belongs to the supported mime-type.

Audit Logging Service

When a file is uploaded, all files created/updated are audited and an audit log is generated.
  • These audit logs are stored in the consumer's audit log store.
  • The user field is populated with the value SAP_IOT_DEVICE_CONNECTIVITY_CLIENT.

File Processing

File processing involves two steps:
  1. Generate the Device Certificate.
  2. Publish File with REST using cURL.

Common Headers

Common Status and Error Codes

Code Description
201 File uploaded successfully
400
  • Invalid Mime type

  • File size exceeds the limit (30 MB)

  • Malware infected file

429 Too many requests
500 Error in processing the file upload request
401 Device certificate is invalid or it belongs to a different device