Skip to content

Auto Upload: uploads 0b files #1295

Closed

Description

@tobiasKaminsky
  • latest LineageOS, OnePlus 3
  • take a picture with camera app OR take a screenshot, both with provided apps by LineageOS
  • see that 0b are uploaded
  • in Amaze (file browser) the file size is also 0b, but it is shown correctly in gallery, however in nextcloud app it is not shown (error image)

Using another camera app (open camera) it is working fine.

Activity

  1. tobiasKaminsky commented on Aug 10, 2017

    @tobiasKaminsky
    MemberAuthor

    Strange, seems more a bug in the camera (snap) app:

    • right after taking an image it is ~2-3Mb, showing in gallery is also fine
    • seconds later, it is 0b and the image is a little bit corrupted on the bottom
  2. mario commented on Aug 10, 2017

    @mario
    Contributor

    Does the same happens if you don't have NC on your phone? Also internal or external storage?

  3. tobiasKaminsky commented on Aug 10, 2017

    @tobiasKaminsky
    MemberAuthor

    Internal storage and it also happens if no NC is installed.
    So definitiv a bug of LineageOS/camera app.

  4. tobiasKaminsky commented on Aug 10, 2017

    @tobiasKaminsky
    MemberAuthor

    After further testing:
    those images that are 0b are in fact real images

    • ls -l on adb shell/terminal shows correct size
    • gallery in camera app shows correct size (com.android.gallery3d)
    • amaze, our app and a few others show the wrong size
    • while debugging I see that new File(pathOfStrangeFile).length also shows 0, which then leads to wrong upload

    As some apps get the correct file length we should try to use also this approach to get a proper upload of those files.

  5. added this to the Nextcloud App 2.0.1 milestone on Aug 10, 2017
  6. mario commented on Aug 10, 2017

    @mario
    Contributor

    2.0.1 then.

  7. vnidens commented on Aug 23, 2017

    @vnidens
    Contributor

    @tobiasKaminsky I don't have any device with LineageOS at this moment but have you checked what file size you get when you fetch it through ContentResolver using file's Uri? See this link.

  8. mario commented on Sep 6, 2017

    @mario
    Contributor

    @AndyScherzinger ? :D Why close this? xD

  9. AndyScherzinger commented on Sep 6, 2017

    @AndyScherzinger
    Member

    reopened... well, it auto closes since your PR said resolves 1295 and thus GH auto closes the issue when the PR is merged 😉

  10. tobiasKaminsky commented on Sep 6, 2017

    @tobiasKaminsky
    MemberAuthor

    Postponing as it is an edge case ;-)

  11. modified the milestones: Nextcloud App 2.0.1, on Oct 4, 2017
  12. removed this from the milestone on Jan 11, 2018
  13. mario commented on Jan 11, 2018

    @mario
    Contributor

    @tobiasKaminsky I have to postpone this. This happens on some phones to which I don't have access, but I'll steal your phone at hackweek and we can test.

  14. tobiasKaminsky commented on Feb 16, 2018

    @tobiasKaminsky
    MemberAuthor

    PR is #2185, but as noted there, it is unfortunately not 100% working all the time.

  15. stale commented on May 10, 2019

    @stale

    This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions