Skip to content

Parent folder of uploaded files and folders also gets tagged #92

Open
@thrdroom

Description

I have the exact same problem as described in #87
The "fix" suggested by @nickvergessen does not really solve the problem!

I need the ability to upload folders which automatically get tagged, as well as the option to exclude the parent folder from beeing automatically tagged. There should be either be an option to exclude the parent folder, or any folder a user wishes. Im not sure how the folders to be exlcuded should be selected/defined.

File MIME type > is not > httpd/unix-directory is not a real fix to this problem as it stopps the ability from folders beeing auto tagged and deleted inside the parent folder.

Steps to reproduce

  1. Set a tag "1dayRetention" to be automatically added to files and folders tagged with "parentfolder"
  2. Create folder "tempdir"
  3. Tag folder "tempdir" with tag "parentfolder"
  4. Upload files and folders into the folder "tempdir"

autodelete-retention

Expected behaviour

All files and folders which are uploaded to the parent directory called "tempdir" should be tagged with the tag "1dayRetention". But the parent directory called "tempdir" should not be tagged with the tag "1dayRetention"

tempdir/ [parentfolder]
├── project1/ [1dayRetention]
│ ├── file1.txt [1dayRetention]
│ ├── file2.txt [1dayRetention]
├── file3.txt [1dayRetention]

Actual behaviour

All files and folders which are uploaded to the parent directory called "tempdir" get tagged with the tag "1dayRetention" including the parent directory called "tempdir" itself. Which results in the deletion of the parent directory.

tempdir/ [parentfolder][1dayRetention]
├── project1/ [1dayRetention]
│ ├── file1.txt [1dayRetention]
│ ├── file2.txt [1dayRetention]
├── file3.txt [1dayRetention]

Server configuration

Operating system:
Debian 10

Web server:
Apache

Database:
MariaDB

PHP version:
7.3.11

Nextcloud version: (see Nextcloud admin page)
17.0.1

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions