Content Storage
The Content page serves as a secure file store powered by the West Connectivity Content Micro-Service. Click "UPLOAD" and follow the prompts to upload your files. Each content item has an ID, a MIME type, a size (in bytes), and a Uploaded time.
The files can be filtered by file type, name, and upload time. Simply click "APPLY" after setting up the conditions.
Note
- The content size should not exceed 512 MB (536,870,912 bytes)
- The default total number of files is 100, it can be adjusted in the content service settings
Multiple Upload
The content service supports uploading multiple files via either multiple selection or by dragging and dropping files onto the content UI page.
Access Content by Provisioned Device
In Connector, those files can be accessed by your devices through the device API. Devices may list available content, get content info, download and upload content using the HTTP Device API.
The files uploaded by the device will be displayed on the content UI page, filtered by Device Files of "File types".
There is no restriction as to the kind of content that can be made available to devices. Files can contain anything from audio/video content to config data, but the typical use case is to store firmware updates. For content that gets updated over time, such as with new firmware versions, it is recommended to include in the ID some kind of version tag. Whether this approach is taken or the content is updated in place and a timestamp is used to differentiate, devices will need a means to know which version they are at. West Connectivity recommends storing this information in a Resource. Additionally, if the resource is cloud-modifiable, the device can be notified when new firmware is available.
Setting
You can access the content service settings page directly from the services menu or by clicking "SETTINGS" on the content UI page.
- Retention Policy - Implement a file retention policy by defining the retention duration and specifying the file name prefix
- Whitelisted File Types - Specify the validated file types that are permitted for upload
- Total File Quota - The maximum allowable number of files for upload
Note
If the retention policy is empty, the content file will be stored indefinitely