Skip to content
Snippets Groups Projects
Commit 1aeec5a1 authored by Gospodin Bodurov's avatar Gospodin Bodurov
Browse files

Add optional upload argument

parent 134eb4f2
Branches ghostscript-integration
No related tags found
1 merge request!50Add optional upload argument
......@@ -1066,7 +1066,7 @@ const connection = Penpal.connectToParent({
return encodeResponse("200", response.data, "Document created");
},
documentPutDocument: async (passportUUID, resourceid, contentType, file) => {
documentPutDocument: async (passportUUID, resourceid, contentType, file, upload) => {
const authenticationPublicKey = localStorage.getItem("authenticatedIdentity");
if (
!authenticationPublicKey ||
......@@ -1084,7 +1084,8 @@ const connection = Penpal.connectToParent({
'Content-Type': 'multipart/form-data',
passportuuid: passportUUID,
resourceid,
contentType
contentType,
upload
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment