Skip to content

Commit 6a16727

Browse files
committed
Removed maxFileSize
1 parent 39b644f commit 6a16727

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/nsNextcloud.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Cu.import("resource:///modules/cloudFileAccounts.js");
3939
const kRestBase = "/ocs/v1.php";
4040
const kAuthPath = kRestBase + "/cloud/user";
4141
const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares";
42-
const kMaxFileSize = 1073741824;
4342
const kWebDavPath = "/remote.php/webdav";
4443

4544
function wwwFormUrlEncode (aStr) {
@@ -122,7 +121,7 @@ Nextcloud.prototype = {
122121
_uploader: null,
123122
_lastErrorStatus: 0,
124123
_lastErrorText: "",
125-
_maxFileSize: kMaxFileSize,
124+
_maxFileSize: -1,
126125
_totalStorage: -1,
127126
_fileSpaceUsed: -1,
128127
_uploads: [],
@@ -490,11 +489,7 @@ Nextcloud.prototype = {
490489
* @private
491490
*/
492491
_finishUpload: function nsNc__finishUpload (aFile, aCallback) {
493-
let exceedsFileLimit = Ci.nsIMsgCloudFileProvider.uploadExceedsFileLimit;
494492
let exceedsQuota = Ci.nsIMsgCloudFileProvider.uploadWouldExceedQuota;
495-
if (aFile.fileSize > this._maxFileSize) {
496-
return aCallback.onStopRequest(null, null, exceedsFileLimit);
497-
}
498493
if ((this._totalStorage > 0) && (aFile.fileSize > this.remainingFileSpace)) {
499494
return aCallback.onStopRequest(null, null, exceedsQuota);
500495
}

0 commit comments

Comments
 (0)