aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileUploadSpec.js
Commit message (Collapse)AuthorAgeFilesLines
* fix: remove old fileUploadSpec jsunit testJohn Molakvoæ2023-09-011-303/+0
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(tests): update jsunit tests after dep and files updateJohn Molakvoæ2023-04-061-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Remove more legacy idsVincent Petry2022-07-271-1/+1
| | | | | | | | Remove more unused legacy ids from early ownCloud times. This reduces the number of duplicate ids in the DOM. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace files app ids to classesVincent Petry2022-07-261-3/+3
| | | | | | | | | | | Replaced ids to classes for the following: - #filestable -> .files-filestable - #fileList -> .files-fileList - #controls -> .files-controls - #emptycontent -> .emptyfilelist.emptycontent Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace license information to SPDX expressionLouis Chemineau2022-01-111-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix bug introduced on drag and drop external filespjft2021-08-131-0/+1
| | | | | | | | | | | | | | | | | | Drag and drop of external (OS filesystem) to subdirectories in the browser would fail on specific cases, mainly when the subdirectory was no longer off the root folder. This seemed to have been an issue introduced with the subdirectory free space calculation [here](https://github.com/nextcloud/server/commit/f9536b08096ed1c80391af36d33a18198be1fced) and it seems to fail for any subdirectory that doesn't belong to the root folder. Bug reports: - https://help.nextcloud.com/t/drag-drop-into-subfolders/120731 - https://github.com/nextcloud/server/issues/24720 I couldn't find any reference on scenarios or quota management that would suggest when a subdirectory's free space would be different to the parent's free space, other than when on the root folder, where subdirectories can be external mounts. As such, if my understanding is correct (please review), this calculation can - and should - be made by getting the free space from the first subdirectory in the total path, which caters for all subdirectory scenarios. Please advise, happy to help improve this. Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: pjft <pjft@users.noreply.github.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-311-18/+24
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump jquery from 2.2.4 to 3.1.0Christoph Wurst2020-11-131-8/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix unit testsTomasz Grobelny2019-02-201-49/+95
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Merge branch 'master' into operation_progress_improvements3Tomasz Grobelny2019-01-291-1/+2
|\ | | | | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
| * Add abort stub in JSUnitMorris Jobke2018-12-061-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix unit testsTomasz Grobelny2018-11-241-1/+4
|/ | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Use grid view in other file views tooJan-Christoph Borchardt2018-10-181-1/+1
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix jsunit testsJulius Härtl2018-05-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Upload autorename on client sideVincent Petry2016-11-021-4/+57
| | | | | | | | | | | Removes the need for POST to collection which would hit against upload limits. The client tries to auto rename the file by adding a suffix "(2)". It tries to use the file list on the client side to guess a suitable name. In case a file still cannot be uploaded and creates a conflict, which can happen when the file was concurrently uploaded, the logic will continue increasing the suffix.
* Remove upload_limit in files app as it is not needed with PUT upload (#26069)Vincent Petry2016-11-021-14/+0
| | | | | | | 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>
* Fix js unit tests for webdav put upload changesVincent Petry2016-10-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-78/+63
| | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* update JS humanFileSize to use KB instead of kBMorris Jobke2016-01-191-2/+2
|
* Make files app use Webdav for most operationsVincent Petry2015-11-221-0/+2
|
* Fix file upload, conflict dialog, also in public linkVincent Petry2015-10-211-0/+96
| | | | | | | | - Use "FileList" instead of "OCA.Files.App.fileList" that doesn't exist in public link page. - Fix public link upload by properly adding the form data using a new utility function "addFormData". That one is needed because IE8 upload and regular upload use a different format...
* Added unit tests for "new" file menu and small fixesVincent Petry2015-09-031-51/+0
| | | | | | - added unit tests for NewFileMenu - use generateUrl for FileList.createFile and FileList.createDirectory - added unit tests for FileList.createFile and FileList.createDirectory
* Fix file name validation in New menuVincent Petry2015-04-271-1/+58
|
* fixing js unit testsThomas Müller2015-03-091-13/+0
|
* Added unit tests for "add()" method for file uploadVincent Petry2014-03-061-0/+127
- Added OC.Upload.init() to make the code testable - Added unit tests for the add() method of the uploader with some error cases