Fix link+sync uploads.
This commit is contained in:
parent
00e749834f
commit
66f851e92a
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue