From a013dec5521ff110f56e36faaeedbc052a4f8fe6 Mon Sep 17 00:00:00 2001 From: Pascal-Nicolas Becker Date: Thu, 15 Oct 2015 17:58:40 +0200 Subject: [PATCH] Fixes html5 file upload during workflow (if allowed by configuration). --- dspace-jspui/src/main/webapp/submit/choose-file.jsp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dspace-jspui/src/main/webapp/submit/choose-file.jsp b/dspace-jspui/src/main/webapp/submit/choose-file.jsp index 952a972b34..b67ed39e03 100644 --- a/dspace-jspui/src/main/webapp/submit/choose-file.jsp +++ b/dspace-jspui/src/main/webapp/submit/choose-file.jsp @@ -423,7 +423,16 @@ testChunks: true, throttleProgressCallbacks:1, method: "multipart", - query:{workspace_item_id:'<%= subInfo.getSubmissionItem().getID()%>'} + <% + if (subInfo.isInWorkflow()) + { + %> + query:{workflow_id:'<%= subInfo.getSubmissionItem().getID()%>'} + <% + } else { + %> + query:{workspace_item_id:'<%= subInfo.getSubmissionItem().getID()%>'} + <%}%> }); // Resumable.js isn't supported, fall back on a different method