Add bandwidth counter to file viewer

This commit is contained in:
Fornax committed 2019-03-26 21:01:04 +01:00
1 parent 19067a5616
commit b659ac383a
10 files changed
+46 -31

No files matched your search

+1
View File
@@ -158,6 +158,7 @@
"date_last_view": 1485894987, // Timestamp
"size": 5694837, // Bytes
"views" 1234, // Amount of unique file views
"bandwidth_used": 1234567890, // Bytes
"mime_type" "image/png",
"description": "File description",
"mime_image": "http://pixeldra.in/res/img/mime/image-png.png", // Image associated with the mime type
+6 -3
View File
@@ -130,7 +130,8 @@
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"views": 1
"views": 1,
"bandwidth_used": 1234567890
},
{
"detail_href": "/file/RKwgZb/info",
@@ -139,7 +140,8 @@
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"views": 2
"views": 2,
"bandwidth_used": 1234567890
},
{
"detail_href": "/file/DRaL_e/info",
@@ -148,7 +150,8 @@
"description": "",
"date_created": 1513033304,
"date_last_view": 1513033304,
"views": 3
"views": 3,
"bandwidth_used": 1234567890
}
]
}