From ed6a3ace99879d30d4d78ad7addaa71bfff802b2 Mon Sep 17 00:00:00 2001 From: Shaun Ford Date: Fri, 20 Apr 2018 11:04:01 -0700 Subject: [PATCH] Fix file download format --- dashboard/app/actions/manageSafetyDepositBoxActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/app/actions/manageSafetyDepositBoxActions.js b/dashboard/app/actions/manageSafetyDepositBoxActions.js index ffb70571e..db6db2176 100644 --- a/dashboard/app/actions/manageSafetyDepositBoxActions.js +++ b/dashboard/app/actions/manageSafetyDepositBoxActions.js @@ -354,7 +354,7 @@ export function downloadFile(token, fullPath, filename) { }) .then((response) => { let reader = new window.FileReader(); - reader.readAsText(response.data); + reader.readAsArrayBuffer(response.data); reader.onload = function() { downloadjs(reader.result, filename) }