Can't upload file "due to contains reserved names or invalid character"
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/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](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. Use a gallery / file manager app to select a photo
2. Share to Nextcloud
3. Pick the folder to upload to (I used InstantUpload -> Camera)
### Expected behaviour
The file should be uploaded
### Actual behaviour
Popup appears in the Nextcloud app, titled "This file cannot be uploaded". Contents of popup are "Some contents cannot able to uploaded due to contains reserved names or invalid character"
### Android version
14
### Device brand and model
Samsung Galaxy S23 Ultra
### Stock or custom OS?
Stock
### Nextcloud android app version
3.31.0
### Nextcloud server version
31.0.1
### Using a reverse proxy?
Yes
### Android logs
Debug 23:28:33.382 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity$_13636#131169 at index 1
Info 23:28:33.410 Reparenting to original parent: Surface(name=ActivityRecord{d31f03a u0 com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity t44638})/@0x9f99ee, destroy=true, surface=Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31
Info 23:28:33.411 Reparenting to original parent: Surface(name=Task=44638)/@0x7205f20, destroy=true, surface=Surface(name=Dim Layer for - Task=44638)/@0x19c6297
Info 23:28:33.418 Layer::reparent [ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity#131179] newParent : ActivityRecord{d31f03a u0 com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity t44638}#131136 , isRemovedFromCurrentState : 0 -------------------------
Info 23:28:33.418 Layer::reparent [Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187] newParentHandle : null -------------------------
Info 23:28:33.418 Layer::reparent [ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity#131179] End -------------------------
Info 23:28:33.418 Layer::reparent [Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187] End -------------------------
Info 23:28:33.418 Layer::reparent [Dim Layer for - Task=44638#131188] End -------------------------
Info 24:28:33.418 id=131190 removeFromCurrentState Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190 (642)
Info 23:28:33.418 id=131187 removeFromCurrentState Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187 (642)
Info 23:28:33.419 id=131191 Destroyed Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190 (Mirror)#131191
Info 23:28:33.418 Layer::reparent [Dim Layer for - Task=44638#131188] newParent : Task=44638#131135 , isRemovedFromCurrentState : 0 -------------------------
Info 23:28:33.418 Layer::reparent [Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190] newParentHandle : null -------------------------
Info 23:28:33.418 Layer::reparent [Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190] End -------------------------
Info 23:28:33.419 id=131189 Destroyed Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187 (Mirror)#131189
Info 23:28:33.420 id=131190 Removed Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190 (640)
Info 23:28:33.420 id=131187 Removed Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187 (640)
Info 23:28:33.427 id=131190 Destroyed Surface(name=Dim Layer for - Task=44638)/@0x19c6297 - animation-leash of dimmer#131190
Info 23:28:33.427 id=131187 Destroyed Surface(name=ef4f9fd com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity)/@0xad70e31 - animation-leash of window_animation#131187
Debug 23:28:33.479 identifyForegroundApp. com.nextcloud.client, mCurrentUserId: 0, callerUserId: 0
Debug 23:28:33.480 getGamePkgData(). com.nextcloud.client
Debug 23:28:33.480 isForegroundGame(), ret=false
Debug 23:28:33.483 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer at index 0
Debug 23:28:33.484 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer Dim Layer for - Task=44638#131188 at index 2
Debug 23:28:33.484 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity$_13636#131169 at index 1
Debug 23:28:33.484 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer Bubbles!$_4279#130111 at index 3
Info 23:28:33.922 (REDACTED) Client %s (%s) disconnecting %s
Info 23:28:33.925 stop ranging called. [CONTEXT service_id=49 ]
Info 23:28:33.928 (REDACTED) User opted in for analytics reporting: %s.
Info 23:28:33.928 AnalyticsLogger is shutdown. [CONTEXT service_id=49 ]
Debug 23:28:33.948 identifyForegroundApp. com.nextcloud.client, mCurrentUserId: 0, callerUserId: 10
Debug 23:28:33.947 ignoring old pipeline callbacks, because the new mobile icons are enabled
Debug 23:28:33.948 getGamePkgData(). com.nextcloud.client
Info 23:28:33.949 [#CMH#] Is foreground game app: false
Debug 23:28:33.951 identifyForegroundApp. com.nextcloud.client, mCurrentUserId: 0, callerUserId: 0
Debug 23:28:33.951 getGamePkgData(). com.nextcloud.client
Info 23:28:33.952 [#CMH#] Is foreground game app: false
Debug 23:28:33.979 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer com.nextcloud.client/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity$_13636#131169 at index 1
Debug 23:28:33.980 [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer Bubbles!$_4279#130111 at index 3
### Server error logs
```bash
```
### Additional information
The filename I was trying to upload was "20250330_110623.jpg" - very standard in my view.
Other photos with similar filenames have been uploaded just fine (including before and after this one that isn't working). I spotted that this one (and others) were missing, and when I tried to manually upload it, this failed.
Seems to be similar to #13658
Contributor guide
Assessment
This issue has not been assessed yet.