Fixes html5 file upload during workflow (if allowed by configuration).

This commit is contained in:
Pascal-Nicolas Becker
2015-10-15 17:58:40 +02:00
parent 2da95e543e
commit a013dec552

View File

@@ -423,7 +423,16 @@
testChunks: true,
throttleProgressCallbacks:1,
method: "multipart",
<%
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