curtain-web-api 1.0.81 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -346,6 +346,9 @@ export class CurtainWebAPI {
|
|
|
346
346
|
if ("expiry_duration" in sessionData) {
|
|
347
347
|
form.append("expiry_duration", sessionData["expiry_duration"].toString());
|
|
348
348
|
}
|
|
349
|
+
if ("name" in sessionData) {
|
|
350
|
+
form.append("name", sessionData["name"]);
|
|
351
|
+
}
|
|
349
352
|
if (encryption.encrypted) {
|
|
350
353
|
form.append("encrypted", "True");
|
|
351
354
|
}
|
|
@@ -804,7 +807,7 @@ export class CurtainWebAPI {
|
|
|
804
807
|
}
|
|
805
808
|
let headers = new AxiosHeaders();
|
|
806
809
|
headers["Accept"] = "application/json";
|
|
807
|
-
return this.axiosInstance.
|
|
810
|
+
return this.axiosInstance.post(`${this.baseURL}curtain-chunked-upload/${uploadId}/`, formData, { headers: headers });
|
|
808
811
|
}
|
|
809
812
|
cancelCurtainUpload(uploadId) {
|
|
810
813
|
let headers = new AxiosHeaders();
|
package/package.json
CHANGED
|
@@ -545,6 +545,10 @@ export class CurtainWebAPI {
|
|
|
545
545
|
form.append("expiry_duration", sessionData["expiry_duration"].toString())
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
+
if ("name" in sessionData) {
|
|
549
|
+
form.append("name", sessionData["name"])
|
|
550
|
+
}
|
|
551
|
+
|
|
548
552
|
if (encryption.encrypted) {
|
|
549
553
|
form.append("encrypted", "True")
|
|
550
554
|
} else {
|
|
@@ -1070,7 +1074,7 @@ export class CurtainWebAPI {
|
|
|
1070
1074
|
|
|
1071
1075
|
let headers = new AxiosHeaders();
|
|
1072
1076
|
headers["Accept"] = "application/json";
|
|
1073
|
-
return this.axiosInstance.
|
|
1077
|
+
return this.axiosInstance.post<CurtainChunkedUploadCompletionResponse>(`${this.baseURL}curtain-chunked-upload/${uploadId}/`, formData, {headers: headers});
|
|
1074
1078
|
}
|
|
1075
1079
|
|
|
1076
1080
|
cancelCurtainUpload(uploadId: string) {
|