diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-09-19 21:29:48 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-02 20:43:35 +0100 |
commit | 7e701504be9352d21a25d17adca45dc5ed79d792 (patch) | |
tree | 57a8c3b2945f26281f069777db6f8c689bc304b5 /apps/files/tests/js | |
parent | e6b52ef4cd1a92004895320d52f08b44a8b422d3 (diff) | |
download | nextcloud-server-7e701504be9352d21a25d17adca45dc5ed79d792.tar.gz nextcloud-server-7e701504be9352d21a25d17adca45dc5ed79d792.zip |
Remove upload_limit in files app as it is not needed with PUT upload (#26069)
The web UI now uses for PUT uploads which aren't restricted by PHP's
upload_max_filesize and post_max_size
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/files/tests/js')
-rw-r--r-- | apps/files/tests/js/fileUploadSpec.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/files/tests/js/fileUploadSpec.js b/apps/files/tests/js/fileUploadSpec.js index 19f8cde7e44..fa686dbf3e2 100644 --- a/apps/files/tests/js/fileUploadSpec.js +++ b/apps/files/tests/js/fileUploadSpec.js @@ -35,7 +35,6 @@ describe('OC.Upload tests', function() { // need a dummy button because file-upload checks on it $('#testArea').append( '<input type="file" id="file_upload_start" name="files[]" multiple="multiple">' + - '<input type="hidden" id="upload_limit" name="upload_limit" value="10000000">' + // 10 MB '<input type="hidden" id="free_space" name="free_space" value="50000000">' + // 50 MB // TODO: handlebars! '<div id="new">' + @@ -97,19 +96,6 @@ describe('OC.Upload tests', function() { expect(result[0].submit.calledOnce).toEqual(true); expect(failStub.notCalled).toEqual(true); }); - it('does not add file if it exceeds upload limit', function() { - var result; - $('#upload_limit').val(1000); - - result = addFiles(uploader, [testFile]); - - expect(result[0]).toEqual(null); - expect(failStub.calledOnce).toEqual(true); - expect(failStub.getCall(0).args[1].textStatus).toEqual('sizeexceedlimit'); - expect(failStub.getCall(0).args[1].errorThrown).toEqual( - 'Total file size 5 KB exceeds upload limit 1000 B' - ); - }); it('does not add file if it exceeds free space', function() { var result; $('#free_space').val(1000); |