Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud-filelink.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Viguier <guillaume@viguierjust.com>2017-04-05 17:56:49 +0300
committerGuillaume Viguier <guillaume@viguierjust.com>2017-04-05 17:56:49 +0300
commit6a16727a4c4e1f588a67310de827778e6d864f94 (patch)
tree70d5fc40ae34f40a2db1ab096a6d91b4b08fb276 /src
parent39b644f29b5878bb8321ce31ebe2fafefd2e1d3e (diff)
Removed maxFileSize
Diffstat (limited to 'src')
-rw-r--r--src/components/nsNextcloud.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/nsNextcloud.js b/src/components/nsNextcloud.js
index 15a7df3..6de3306 100644
--- a/src/components/nsNextcloud.js
+++ b/src/components/nsNextcloud.js
@@ -39,7 +39,6 @@ Cu.import("resource:///modules/cloudFileAccounts.js");
const kRestBase = "/ocs/v1.php";
const kAuthPath = kRestBase + "/cloud/user";
const kShareApp = kRestBase + "/apps/files_sharing/api/v1/shares";
-const kMaxFileSize = 1073741824;
const kWebDavPath = "/remote.php/webdav";
function wwwFormUrlEncode (aStr) {
@@ -122,7 +121,7 @@ Nextcloud.prototype = {
_uploader: null,
_lastErrorStatus: 0,
_lastErrorText: "",
- _maxFileSize: kMaxFileSize,
+ _maxFileSize: -1,
_totalStorage: -1,
_fileSpaceUsed: -1,
_uploads: [],
@@ -490,11 +489,7 @@ Nextcloud.prototype = {
* @private
*/
_finishUpload: function nsNc__finishUpload (aFile, aCallback) {
- let exceedsFileLimit = Ci.nsIMsgCloudFileProvider.uploadExceedsFileLimit;
let exceedsQuota = Ci.nsIMsgCloudFileProvider.uploadWouldExceedQuota;
- if (aFile.fileSize > this._maxFileSize) {
- return aCallback.onStopRequest(null, null, exceedsFileLimit);
- }
if ((this._totalStorage > 0) && (aFile.fileSize > this.remainingFileSpace)) {
return aCallback.onStopRequest(null, null, exceedsQuota);
}