Fix link+sync uploads.

This commit is contained in:
Michelle Tang 2024-11-19 13:58:07 -08:00 committed by Greyson Parrelli
parent 00e749834f
commit 66f851e92a

View file

@ -1992,7 +1992,11 @@ public class PushServiceSocket {
}
public void uploadBackupFile(AttachmentUploadForm uploadForm, String resumableUploadUrl, InputStream data, long dataLength) throws IOException {
uploadToCdn3(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null, uploadForm.headers);
if (uploadForm.cdn == 2) {
uploadToCdn2(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null);
} else {
uploadToCdn3(resumableUploadUrl, data, "application/octet-stream", dataLength, false, new NoCipherOutputStreamFactory(), null, null, uploadForm.headers);
}
}
private AttachmentDigest uploadToCdn3(String resumableUrl,