Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

UI update: added responseType for data export

Rich Turner2392048ef2dc
diff --git a/ui/app/manager/src/pages/page-export.ts b/ui/app/manager/src/pages/page-export.ts
index c83e7aed3..725f4361e 100644
--- a/ui/app/manager/src/pages/page-export.ts
+++ b/ui/app/manager/src/pages/page-export.ts
@@ -361,6 +361,9 @@ class PageExport<S extends AppStateKeyed> extends Page<S> {
attributeRefs: JSON.stringify(this.attrRefs),
fromTimestamp: this.oldestTimestamp,
toTimestamp: this.latestTimestamp
+ }, {
+ responseType: "blob",
+
}).then(response => {
// This is the best we can do with xhr - would need to return a link to the file for proper streamed download support
const url = window.URL.createObjectURL(new Blob([response.data]));