summaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js/fileUploadSpec.js
Commit message (Collapse)AuthorAgeFilesLines
* 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