Skip to content

The Forms folder structure is not sanitized which can lead to synchronization issues when uploading files #2409

@stefan0xC

Description

@stefan0xC

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug
Uploaded files are seemingly saved in a folder structure Forms/{id of form} - {title of form}/{id of submission}/{id of question} - {title of question} but the titles do not seem to get trimmed in regards to trailing white spaces, which results in syncing problems (at least on Windows 11 with NTFS).

To Reproduce
Steps to reproduce the behavior:

  1. Go to Forms and create a new form
  2. Call it test with a trailing whitespace
  3. Add a file upload option and call it test as well
  4. Upload a file

Expected behavior
I expect the fields that are used for filenames to be trimmed in regard to whitespace and maybe also sanitized regarding other invalid characters like :

Screenshots
If applicable, add screenshots to help explain your problem.
Image

Nextcloud (please complete the following information):

  • Nextcloud-Version: 30.0.2
  • Forms-Version: 4.3.3

Desktop (please complete the following information):

  • OS: Windows 11 with NTFS file system
  • Nexcloud Desktop v3.14.3

Metadata

Metadata

Assignees

Labels

1. to developAccepted and waiting to be taken care ofbugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions