aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
* fix(files): properly forward open params from short urlsskjnldsv2025-02-181-14/+26
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Only hide template folder creation if default was changed to emptyfix/show-templates-folder-defaultJulius Knorr2025-01-301-1/+1
| | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* fix: Hide "Create templates folder" option if templates are disabled in ↵Pawel Boguslawski2025-01-271-0/+1
| | | | | | | | | | | | | | | | configuration When both `skeletondirectory` and `templatedirectory` are set to empty strings in configuration, templates folder creation should be disabled and no Create templates folder option should be present in new folder menu. Related: https://github.com/nextcloud/server/issues/39266 Related: https://github.com/nextcloud/server/issues/46455 Author-Change-Id: IB#1156403 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl> Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore(files): Deprecate thumbnail endpoint in favor of core preview endpointfix/harden-thumbnail-endpointFerdinand Thiessen2025-01-261-0/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Harden thumbnail endpointFerdinand Thiessen2025-01-261-6/+17
| | | | | | | | - Catch all thrown exceptions and handle in such a way you do not get information about forbidden files. - Resepect download permissions of shares. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): add conversion actionskjnldsv2025-01-221-1/+5
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files): more conversion tests and translate error messagesskjnldsv2025-01-171-2/+10
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: Log exceptions that happen during file conversionfix/convert-logJulius Knorr2025-01-171-1/+3
| | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* feat(api): File conversion APIElizabeth Danzberger2025-01-151-0/+95
| | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* refactor(OpenAPI): Adjust scopes to match previous behaviorprovokateurin2025-01-061-0/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-054-11/+18
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-215-56/+25
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: do not duplicate existing entityMaksim Sukharev2024-10-161-8/+1
| | | | | | - this reverts 1e8048abee1745bab648dba5bf96f956c718e4e3 Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* fix: dismiss notification only after transfer bg job createdMaksim Sukharev2024-10-161-5/+5
| | | | | | - do not create 'denied' notification if bg job exists Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-152-6/+10
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(files): Remove legacy style filesFerdinand Thiessen2024-09-201-1/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-4/+5
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-1/+1
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* perf(files): Do not block files page load with server-side favorites retrievalChristopher Ng2024-08-271-15/+0
| | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Christopher Ng <chrng8@gmail.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* refactor(files): Drop unneeded initial stateFerdinand Thiessen2024-08-141-51/+0
| | | | | | | The initial state is no longer used, it was only used in legacy UI and in the f2v rewrite it was only used for the `id` which can be loaded just from the URL. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Update openapiChristopher Ng2024-08-081-1/+6
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow specifying path and depth for returned folder treeChristopher Ng2024-08-081-44/+37
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(files): When redirecting to a file (internal link) then it should open ↵Ferdinand Thiessen2024-08-031-0/+2
| | | | | | by default Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Update openapi specChristopher Ng2024-08-011-1/+9
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Implement endpoint to retrieve a user's folder treeChristopher Ng2024-08-011-25/+89
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(files): Replace security annotations with respective attributesprovokateurin2024-07-277-73/+56
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #46672 from nextcloud/fix/preview-invalid-idAndy Scherzinger2024-07-251-0/+4
|\ | | | | Avoid using partial file info as valid one
| * fix: Ignore preview requests for invalid file idsJulius Härtl2024-07-221-0/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix: PHP formattingElizabeth Danzberger2024-07-251-1/+2
| | | | | | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* | feat: Add support for filling fields to backend componentsElizabeth Danzberger2024-07-251-2/+12
|/ | | | Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
* refactor: Remove deprecated `Util` function for filename validation to ↵Ferdinand Thiessen2024-07-161-44/+20
| | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* perf(session): remove useless session openBenjamin Gaussorgues2024-06-241-3/+0
| | | | | | | `UseSession` isn’t used in theses controllers. Not using it should avoid a few session locks. Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(files): Rename openFileInfo to fileInfoLouis Chemineau2024-06-191-1/+1
| | | | | | And check if openFile is set in the URL before opening a file. Signed-off-by: Louis Chemineau <louis@chmn.me>
* perf: Tell browsers to cache storage stats endpoint as it is cachedJulius Härtl2024-06-181-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix(files): Properly handle denied ownership transfersFerdinand Thiessen2024-06-141-12/+2
| | | | | | | | | | | | | When the receiver denies the transfer the notification handler was missing, so no notification was created for the transfer owner. But also the internal notification was created two times: 1. When rejecting the transfer 2. By the reject function when dismissing the notification This is fixed by only relying on the dismiss function. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-297-164/+18
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): Use string array instead of string for forbidden charactersFerdinand Thiessen2024-04-291-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Use OCP\Util::getForbiddenFileNameChars instead of direct access ↵Ferdinand Thiessen2024-04-291-4/+2
| | | | | | to system config Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-022-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files): add search plugin to search in specified folder exclusivelyfenn-cs2024-03-071-0/+2
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-10/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files): Remove dead code from files controllersFerdinand Thiessen2024-02-121-20/+0
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Make sure to add the `fileid` on favorite folders navigation entriesFerdinand Thiessen2024-01-251-3/+8
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): combine navigation and files list into single Vue appGrigorii K. Shartsev2024-01-251-7/+0
| | | | Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-183-6/+6
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(files): Remove unused type aliasprovokateurin2024-01-181-1/+0
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(ViewController): Regression lead to 500 on non-existent fileIdsJosh Richards2023-12-211-6/+10
| | | | | Fixes #42418 Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* fix(files): Adjust ID for skip content buttonsFerdinand Thiessen2023-12-211-1/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-235-24/+25
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>