Skip to content

Upload from external app doesn't work #17258

Closed

Description

@pawlosck

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Install this app
    https://f-droid.org/pl/packages/com.github.tmo1.sms_ie/
    Probably other apps can be used too.
  2. Open and try to export messages or contacts
  3. Choose nextcloud app (from left bar)
  4. Choose any dir in nextcloud app
  5. Press button Save
  6. You will see message "File couldn't be saved" (I am using polish version, so original english message can be different).
  7. File was created on the server, but file is empty (0b)

Expected behaviour

File should be uploaded without errors

Actual behaviour

File is not saved on the server

Android version

16

Device brand and model

Samsung S24 Ultra

Stock or custom OS?

Stock

Nextcloud android app version

34.0.1

Nextcloud server version

33.0.6

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

Additional information

I have this problem since one or two months.
I updated nextcloud server and reinstalled Nextcloud android app and problem still exists.

Activity

  1. kostiya commented on Jun 28, 2026

    @kostiya

    Thats exactly the regression I experience.
    Downgraded to 34.0.0 and it fixed it.
    @pawlosck

  2. kstorbakken commented on Jun 30, 2026

    @kstorbakken

    Yep, broken for me too. All apps that access Nextcloud storage can no longer upload since upgrading to 34.0.1 earlier this week. The apps will detect they don't have access, error out, and a 0KB file is created on the server side for whatever the app was trying to do.

  3. WPettersson commented on Jul 1, 2026

    @WPettersson

    Probably the same as #17261 which has a few more specifics on the cause.

  4. self-assigned this
    on Jul 2, 2026
  5. alperozturk96 commented on Jul 2, 2026

    @alperozturk96
    Collaborator

    Hello

    Once the QA APK generated could you please test and share your feedback?

    #17270

  6. Tux12Fun commented on Jul 3, 2026

    @Tux12Fun

    I have the same issue when opencam tries to store files on my nextcloud. Pease release a hot fix without the SAF to Nextcloud the App is nearly useless.

  7. kstorbakken commented on Jul 4, 2026

    @kstorbakken

    Hello

    Once the QA APK generated could you please test and share your feedback?

    #17270

    I tried the QA APK and I was able to export files in the FitoTrack app directly to NC via the Files app. That wouldn't work in 34.0.1. I also use the app SMS Backup & Restore and it still fails to access NC storage. I'm on LineageOS (22) and I've always selected a location using the Files app, which lets me select NC as a storage location and then I select my desired upload folder from there. I'm still getting 0KB files, and the app errors saying it can't access the storage.

  8. alperozturk96 commented on Jul 6, 2026

    @alperozturk96
    Collaborator

    @kstorbakken So "SMS Backup & Restore" this still failed with QA APK? If yes could you share the logs if possible?

  9. kstorbakken commented on Jul 6, 2026

    @kstorbakken

    Yeah exactly. I started a log capture and went through a backup. The log is here - https://gist.github.com/kstorbakken/2e4d428c2c6e46b85f2d26c65070df54

  10. alperozturk96 commented on Jul 6, 2026

    @alperozturk96
    Collaborator

    We fixed this problem

    "07-06 00:27:32.915 11538 23130 E DocumentsStorageProvider: RemoteOperationResult{mSuccess=false, mHttpCode=-1, mHttpPhrase='null', mException=null, mCode=LOCAL_STORAGE_NOT_MOVED, message='null', getLogMessage='Error while moving file to final directory'}"

    via #17157 but still appears in your logs. Probably because of the DocumentStorageProvider implementation.

    Is it possible to share screen-recording? Thus maybe I can try to reproduce it.

  11. 12 remaining items

  12. brianjmurrell commented on Oct 6, 2026

    @brianjmurrell

    Is this actually fixed? I still saw lots of people complaining that it did not work even after trying the QA build for #17270.

    Can anyone who reported here that they were seeing this issue confirm that it is now working?

  13. pawlosck commented on Oct 6, 2026

    @pawlosck
    Author

    Its not fixed for me.

  14. foss- commented on Oct 24, 2026

    @foss-

    Running v35.0.1 and trying to use Nextcloud with HealthConnect backups. Nextcloud can be selected from the provider list. Selecting any folder results in Health Connect.zip files with zero bytes. Feels a lot like this bug.

    Supposed fix #17270 does not have a milestone tag but assume it would be part of 35.0.1?

    @tobiasKaminsky can you re-open or do you want a new issue for the remaining problem?

  15. alperozturk96 commented on Oct 27, 2026

    @alperozturk96
    Collaborator

    29. Running v35.0.1 and trying to use Nextcloud with HealthConnect backups. Nextcloud can be selected from the provider list. Selecting any folder results in Health Connect.zip files with zero bytes. Feels a lot like this bug.
    Supposed fix #17270 does not have a milestone tag but assume it would be part of 35.0.1?
    @tobiasKaminsky can you re-open or do you want a new issue for the remaining problem?

    Hey,

    Could you please check via this QA APK: #17890 ? It will be generated soon.

  16. foss- commented on Oct 27, 2026

    @foss-
    1. Downloaded test apk from https://github.com/nextcloud/android/actions/runs/40533814650
    2. logged into nextcloud
    3. in Health Connect > Manage Data > Backup and restore select Nextcloud QA and a sub-folder on that nextcloud

    Sadly Android again complains that There was a problem with the export for October 27, 2026. Please set up a new scheduled export and try again.

    This matches the previous problematic behavior.

    Nextcloud QA Android app Version 17890

  17. alperozturk96 commented on Oct 28, 2026

    @alperozturk96
    Collaborator

    29. Downloaded test apk from https://github.com/nextcloud/android/actions/runs/40533814650
    30. logged into nextcloud
    31. in Health Connect > Manage Data > Backup and restore select Nextcloud QA and a sub-folder on that nextcloud

    Sadly Android again complains that There was a problem with the export for October 27, 2026. Please set up a new scheduled export and try again.

    This matches the previous problematic behavior.

    Nextcloud QA Android app Version 17890

    Hey thanks for the feedback. Can u re-test via latest QA APK and share the logs from settings -> logs? You can filter logs via DocumentsStorageProvider

  18. foss- commented on Oct 28, 2026

    @foss-

    @alperozturk96 did another test round with the new build from https://github.com/nextcloud/android/actions/runs/40662655093

    Still failing with same error. Requested log (1 week): https://privatebin.lol/?5dd51c45c4ed3b91#EKAAo218oc7f5hMzUkKKocjPeS5ZufYWvUfSVGum7wzb

    Relevant part:

    2026-10-28T14:57:54.190+0100;E;DocumentsStorageProvider;File was closed with an error: Health Connect (8).zip
    2026-10-28T14:57:54.193+0100;D;DocumentsStorageProvider;openDocument(), id=7bf0c0c5e27ad263503711f8f4e1bc03/32532, mode=wt, callerUid=1000
    2026-10-28T14:57:54.200+0100;D;DocumentsStorageProvider;openDocument(), remotePath=/Backups/Health Connect (8).zip, storagePath=/storage/emulated/0/Android/media/com.nextcloud.android.qa/nextcloud/user@cloud.domain.org/Backups/Health Connect (8).zip, existsOnDevice=true, truncate=true, needsDownload=false
    2026-10-28T14:57:54.202+0100;E;DocumentsStorageProvider;File was closed with an error: Health Connect (8).zip
    
  19. alperozturk96 commented on Oct 29, 2026

    @alperozturk96
    Collaborator

    @foss- thank you so much for the swift reply and help. I tried with same app now it should work. Could you please check again #17890 (comment) ?

  20. foss- commented on Oct 29, 2026

    @foss-

    Fantastic - Health Connect backup worked as expected in latest test build. So happy this finally works 🎉

    Thanks so much for your fast responses, re-opening and properly fixing the issue. I think that should be it.

    edit: Follow-up: #17908

  21. alperozturk96 commented on Oct 29, 2026

    @alperozturk96
    Collaborator

    Fantastic - Health Connect backup worked as expected in latest test build. So happy this finally works 🎉

    Thanks so much for your fast responses, re-opening and properly fixing the issue. I think that should be it.

    Sidequest: While I have your attention, I have another external app access issue I noticed but that is not about write error but discoverability of Nextcloud. Can you help me understand against which project I would want to file the report? Repro steps:

    1. open Firefox > ... > Extensions > uBlock Origin > Settings > Restore from file... (at the bottom)
    2. in the file picker open hamburger menu at top left
    3. many apps like Galleries, Google Drive, File managers and more do show but Nextcloud is absent

    Unsure if this is expected or not, but the fact that Google Drive shows up indicates that Nextcloud should be on that list as well. Is this something that needs to be addressed in Nextcloud, Firefox or in the end Android? 🫪

    Please create new issue for that thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions