You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Go to Forms and create a new form
Call it test with a trailing whitespace
Add a file upload option and call it test as well
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.
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
The text was updated successfully, but these errors were encountered:
stefan0xC
changed the title
Uploading files to folders with trailing whitespace can cause issues with some file systems
The Forms folder structure is not sanitized in regard to file names which lead to synchronization issues
Nov 14, 2024
stefan0xC
changed the title
The Forms folder structure is not sanitized in regard to file names which lead to synchronization issues
The Forms folder structure is not sanitized which can lead to synchronization issues when uploading files
Nov 14, 2024
@Koc one more bug related to the file question type. I also had a similar issue with a : in the question title. So we should remove all offending characters from the folder names.
We're already using normalizeFileName which uses \OCP\Constants::FILENAME_INVALID_CHARS under the hood. And as far I can see from the constant description - we aren't supporting Windows.
@Koc yes that's right, at least server side. But the official sync client sure does support Windows. Perhaps we can have a look how Server/Files solves that problem?
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:
test
with a trailing whitespacetest
as wellExpected 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.
Nextcloud (please complete the following information):
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: