File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ Cu.import("resource:///modules/cloudFileAccounts.js");
3939const kRestBase = "/ocs/v1.php" ;
4040const kAuthPath = kRestBase + "/cloud/user" ;
4141const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares" ;
42- const kMaxFileSize = 1073741824 ;
4342const kWebDavPath = "/remote.php/webdav" ;
4443
4544function 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 }
You can’t perform that action at this time.
0 commit comments