Fixed max file size = 1.5Gb

This commit is contained in:
Igor Zhukov 2015-03-25 18:59:27 +03:00
parent b04b718490
commit 80e665d4a2

View File

@ -556,7 +556,7 @@ angular.module('izhukov.mtproto.wrapper', ['izhukov.utils', 'izhukov.mtproto'])
}
var totalParts = Math.ceil(fileSize / partSize);
if (totalParts > 1500) {
if (totalParts > 3000) {
return $q.reject({type: 'FILE_TOO_BIG'});
}