From 61ef7ca91b0cfc072b60e173104e01bd0145a6a1 Mon Sep 17 00:00:00 2001 From: Clemens Date: Mon, 25 Jul 2016 10:56:12 +0200 Subject: added contentHash --- web/src/js/ducks/flows.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'web/src/js/ducks') diff --git a/web/src/js/ducks/flows.js b/web/src/js/ducks/flows.js index b197ff37..f96653a9 100644 --- a/web/src/js/ducks/flows.js +++ b/web/src/js/ducks/flows.js @@ -114,8 +114,7 @@ export function update(flow, data) { export function uploadContent(flow, file, type) { const body = new FormData() - if (typeof file !== File) - file = new Blob([file], {type: 'plain/text'}) + file = new Blob([file], {type: 'plain/text'}) body.append('file', file) return dispatch => fetchApi(`/flows/${flow.id}/${type}/content`, {method: 'post', body} ) } -- cgit v1.2.3