Difference between revisions of "File Upload Plugin"
From ESS-WIKI
Line 5: | Line 5: | ||
Advantages: | Advantages: | ||
− | + | *Sync files automatically. | |
− | + | *Support various Cloud Storage or FTP Server | |
+ | *Report Status/Progress to RMM Server | ||
+ | *Send Event to notify file upload result | ||
+ | [[File:FileUpload.png|778x600px|FileUpload.png]] | ||
= Use Case = | = Use Case = |
Revision as of 08:44, 3 January 2019
Introduction
- FileUpload – Auto sync files, in the folder, with Cloud Storage server.
Advantages:
- Sync files automatically.
- Support various Cloud Storage or FTP Server
- Report Status/Progress to RMM Server
- Send Event to notify file upload result
Use Case
Architecture
Capability
{
"FileUpload": {
"info": {
"e": [
{"n": "name","sv": "FileUpload","asm": "r"},
{"n": "description","sv": "This service is FileUpload Service","asm": "r"},
{"n": "version","sv": "1.0.1","asm": "r"},
{"n": "functionList","sv": "upload,resync","asm": "r"},
{"n": "functionCode","v": 3,"asm": "r"}
],
"nonSensorData": true,
"bn": "info"
},
"data": {
"Counter": {
"e": [
{"n": "Total","v": 3,"asm": "r"},
{"n": "Remain","v": 3,"asm": "r"},
{"n": "Finish","v": 0,"asm": "r"}
]
},
"Current Files":[
{
"e": [
{"n": "MD5","sv": "123456789","asm": "r"},
{"n": "Name","sv": "test","asm": "r"},
{"n": "Size","v": 124,"asm": "r"},
{"n": "retry","v": 0,"asm": "r"},
{"n": "progress","v": 50,"asm": "r"}
],
"bn": "test"
}
],
"Rmain Files": [
{
"e": [
{"n": "MD5","sv": "123456789","asm": "r"},
{"n": "Name","sv": "test1","asm": "r"},
{"n": "Size","v": 124,"asm": "r"},
{"n": "retry","v": 0,"asm": "r"}
],
"bn": "test1"
},
{
"e": [
{"n": "MD5","sv": "123456789","asm": "r"},
{"n": "Name","sv": "test2","asm": "r"},
{"n": "Size","v": 124,"asm": "r"},
{"n": "retry","v": 0,"asm": "r"}
],
"bn": "test2"
}
]
},
"action": {
"e": [
{
"msg": "Re-synchronous files in target folder",
"bv": true,
"asm": "w",
"n": "resync"
},
{
"msg": "Upload target file in target folder",
"sv": "",
"asm": "w",
"n": "upload"
}
],
"bn": "action"
},
"bn": "FileUpload"
}
}