summaryrefslogtreecommitdiffstats
path: root/core/js/files
Commit message (Collapse)AuthorAgeFilesLines
* Add OCA.Files.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-0/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make sure we have a proper node before parsingJohn Molakvoæ (skjnldsv)2019-04-151-0/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Created infrastructure to show circles' shared filesVinicius Cubas Brand2019-03-131-2/+6
| | | | | | | | | | | | | | There is a proposal to allow users to filter files shared to circles. This commit is needed to provide the infrastucture for it. Issue: https://github.com/nextcloud/circles/issues/137 Changes to comply to https://github.com/coletivoEITA/circles/pull/2 Polishing: get files shared to circles in caldav Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com> Signed-off-by: Maxence Lange <maxence@artificial-owl.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly handle errors (including 500)Tomasz Grobelny2018-11-241-0/+3
| | | | Signed-off-by: Tomasz Grobelny <tomasz@grobelny.net>
* Adjust some jsdocsJulius Härtl2018-10-241-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove duplicate call to decodeURIComponentBernd Stellwag2018-10-111-2/+0
| | | | Signed-off-by: Bernd Stellwag <burned@zerties.org>
* fix trashbin infoparsers interfering with other dav clientsRobin Appelman2018-09-201-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* pass existing data to info parsersRobin Appelman2018-09-201-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix js files client for user names with spacesRobin Appelman2018-09-101-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Removed unused variable isFileschoonc2018-08-091-2/+0
|
* Move the webui over to the new dav endpointRoeland Jago Douma2018-05-081-1/+1
| | | | | | We should use the new dav endpoint everywhere now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not add sharePermission logic in JSRoeland Jago Douma2018-04-262-2/+19
| | | | | | | We have a dedicated dav property. We should do all the magic in 1 place. Not several. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #6079 from nextcloud/fix-antivirusblizzz2017-12-111-10/+37
|\ | | | | Parse Sabre Exception in OC.Files.Client and file-upload
| * Parse Sabre Exception in OC.Files.Client and file-uploadVincent Petry2017-11-131-10/+37
| | | | | | | | | | | | | | | | In case of error, instead of a generic error message, an upload will display whichever message is returned in the Sabre Exception, if applicable. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | check for encryption state on propfindBjoern Schiessle2017-11-201-0/+12
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #7047 from ↵Björn Schießle2017-11-201-1/+4
|\ \ | |/ |/| | | | | nextcloud/add-support-for-files-with-no-permissions Add support for files with no permissions
| * Set read permission for files based on the data returned by the serverDaniel Calviño Sánchez2017-11-021-1/+4
| | | | | | | | | | | | | | | | Now that the permissions returned by the server specify whether a file is readable or not the frontend no longer needs to assume that every file is readable. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Enable chunking for bigger files in authenticated web uploadVincent Petry2017-11-031-3/+15
|/ | | | | | | | | | | | | | | | This commit adds chunked uploads in the Web UI (for authenticated users, but not for public uploads). To do that the server endpoint used by the uploader is changed from WebDAV v1 to WebDAV v2. The chunking itself is done automatically by the jQuery-File-Upload plugin when the "maxChunkSize" parameter is set; in "fileuploadchunksend" the request is adjusted to adapt the behaviour of the plugin to the one expected by "uploads/" in WebDAV v2. The chunk size to be used by the Web UI can be set in the "max_chunk_size" parameter of the Files app configuration. By default it is set to 10MiB. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Allow files to be copied through action menu & multiple files actionsThomas Citharel2017-09-151-0/+45
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* fix parsing of dav permissionsRobin Appelman2017-07-171-3/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix sorting of favorite filesDaniel Calviño Sánchez2017-07-052-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sort comparator checks the "isFavorite" property of the FileInfo objects to compare. That property is set when the file list is loaded and the response from the server is parsed, and thus a freshly loaded file list has the proper sorting for favorite files. However, the property is not set in other cases, like when the FileInfo objects are derived from FileInfoModels due to a file being marked as a favorite or a text editor being closed, which causes the file to be sorted in the wrong position. There is no need to add the property in those situations, though; in all cases the TagsPlugin adds a "tags" array property that contains an OC.TAG_FAVORITE tag, so that tag can be checked instead of "isFavorite". Moreover, although "isFavorite" was added by the main "_parseFileInfo" function it did not really belong there but to the "FileInfoParser" from the TagsPlugin; however, as that property now is not used anywhere it was removed altogether. A cleaner solution would have been to make the sort comparator extensible by plugins like other behaviours of the file list and then add the sorting logic related to favorite files to the TagsPlugin. However, right now only the TagsPlugin would need to alter the main sorting logic, and it seems like a corner case anyway. Even if it is implemented as a plugin, favorite files is a core feature, so for the time being it will be taken into account directly in the main sorting logic; making the sort comparator extensible by plugins is defered until there are other use cases for that. Fixes #5410 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use dot notation for array access - JSLint recommendationMorris Jobke2017-05-012-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to set custom mount typesRobin Appelman2017-04-281-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fixed size issues on main detail view and disappearing of share recipients ↵Michael Jobst2016-12-231-12/+24
| | | | | | | | | | | | | | | | | | (#26603) * fixed size issues on main detail view and disappearing of share recipients * Changes due to code comments * Moved reloadProperties() to FileInfoModel * Solved Scrutinizer issues * Bugfix: undefined value used on error * check if options are set for FileInfoModel.initialize() Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1283 from nextcloud/us_files-ui-webdav-uploadLukas Reschke2016-10-251-1/+40
|\ | | | | Use Webdav PUT for uploads
| * More fixes to file uploadVincent Petry2016-10-241-1/+40
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Sort favorite files first Issue #1802ryanwr2016-10-242-1/+13
|/ | | | Signed-off-by: Ryan Welch <ryantwr@gmail.com>
* Make it possible to filter by tags with REPORT methodVincent Petry2016-10-191-1/+5
| | | | | | | | | | | Enhanced the REPORT method on the Webdav endpoint and added a "oc:favorite" filter rule. When set, it will return a flat list of results filtered with only favorite files. The web UI was also adjusted to use this REPORT method instead of the private API endpoint. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont load filelist previews if we know we dont have oneRobin Appelman2016-07-272-3/+21
|
* Init the headers in iedavclient.jsVincent Petry2016-06-221-0/+1
|
* Fix MKCOL for IE11 as wellRoeland Jago Douma2016-03-101-1/+6
| | | | | Using https://github.com/owncloud/core/pull/22274 we have to patch the iedavclient.js as well.
* Require CSRF token for non WebDAV authenticated requestsLukas Reschke2016-02-181-1/+4
|
* Merge pull request #16783 from owncloud/handle-redirects-globalThomas Müller2016-02-171-0/+2
|\ | | | | Adding global error handler for ajax calls which run into redirection…
| * Add handler for global ajax errorsVincent Petry2016-02-151-0/+2
| |
* | Fix redundant headers in files dav clientVincent Petry2016-02-161-12/+7
|/ | | | | The defaultHeaders are already injected with the xhrProvider, so no need to pass them again a second time.
* Add system tags filter section for files appVincent Petry2016-02-091-1/+72
|
* Make JS Webdav work again with IE9-IE10Vincent Petry2016-02-051-55/+41
|
* Small fixes in Dav files clientVincent Petry2016-02-041-2/+2
| | | | | Remove double leading slash in path. Add utf-8 in default content type.
* Merge pull request #21200 from owncloud/files-authorizationheaderThomas Müller2015-12-171-12/+10
|\ | | | | Use Authorization headers for public webdav in web UI
| * Use Authorization headers for public webdav instead of URLVincent Petry2015-12-141-12/+10
| | | | | | | | | | | | Instead of prepending the token as username in the URL, use the Authorization header instead. This is because IE9 considers this a cross-domain call and refuses to do it in the first place.
* | Fix files UI mtime parsing from webdavVincent Petry2015-12-161-1/+1
|/
* Files can't have create permissionsRoeland Jago Douma2015-12-111-4/+0
| | | | Fixes #20839
* Fix for parsing pretty printed Webdav responsesVincent Petry2015-11-241-4/+1
| | | | Update davclient.js + adjust IE workaround for this
* Now using IE8 workaround of davclient.js for all IE versionsVincent Petry2015-11-221-1/+1
|
* Fix OC.FileInfo to copy all propertiesVincent Petry2015-11-221-25/+17
| | | | | This makes it possible to also store custom properties passed through the data object like tags or shareOwner.
* Use oc:fileid property instead of oc:idVincent Petry2015-11-221-17/+3
|
* Fix port issue - options.host already has the port attachedThomas Müller2015-11-221-16/+3
|
* Query tags/favorite through Webdav in file listVincent Petry2015-11-222-10/+58
|
* Added OC.Files.Client Webdav-based files clientVincent Petry2015-11-222-0/+816
|