From e9e2b7f443a1395a169d853ffd4e692485e9da1a Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Mon, 13 Aug 2018 15:17:57 +0800 Subject: [web] Fixes #3228:API endpoint error --- web/src/js/ducks/flows.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/src/js/ducks') diff --git a/web/src/js/ducks/flows.js b/web/src/js/ducks/flows.js index 523ec396..841feeba 100644 --- a/web/src/js/ducks/flows.js +++ b/web/src/js/ducks/flows.js @@ -209,7 +209,7 @@ export function uploadContent(flow, file, type) { const body = new FormData() file = new window.Blob([file], { type: 'plain/text' }) body.append('file', file) - return dispatch => fetchApi(`/flows/${flow.id}/${type}/content`, { method: 'POST', body }) + return dispatch => fetchApi(`/flows/${flow.id}/${type}/content.data`, { method: 'POST', body }) } -- cgit v1.2.3