android
android copied to clipboard
Prevent upload of files with filenames that contain invalid characters
⚠️ Before posting ⚠️
- [X] This is a bug, not a question or an enhancement.
- [X] I've searched for similar issues and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- Use and App, which has a share dialogue.
- Use nextcloud as a target and select a folder
- upload the file
During the process you do not see the actual filename created, nor have an option to change it.
Expected behaviour
Options:
a) silently replace potentially illegal characters with an underscore (:, /, backslash, ...)
b) warn user and let user change the filename
c) warn user about the problematic filename and ask for permission to proceed like in a)
Actual behaviour
file with a filename like whatever_08:30.pdf is created and the user expects it to be synced to his desktop, which fails with a silent message in the sync log.
Android version
12
Device brand and model
Samsung
Stock or custom OS?
Stock
Nextcloud android app version
3.23.1
Nextcloud server version
25.0.1
Using a reverse proxy?
No
Android logs
no
Server error logs
not relevant here
Additional information

Might be related to #2711