Instant uploads based on watch for new files in camera folder#1783
Instant uploads based on watch for new files in camera folder#1783
Conversation
|
@davivel, thanks for your PR! By analyzing the annotation information on this pull request, we identified @przybylski, @tobiasKaminsky and @jabarros to be potential reviewers |
| private static final String PREF__INSTANT_PICTURE_UPLOAD_PATH = "instant_upload_path"; | ||
| private static final String PREF__INSTANT_VIDEO_UPLOAD_PATH = "instant_video_upload_path"; | ||
| private static final String PREF__INSTANT_UPLOAD_BEHAVIOUR = "prefs_instant_behaviour"; | ||
| private static final String PREF__INSTANT_UPLOAD_SOURCE = "instant_upload_source_path"; // NEW - not saved yet |
There was a problem hiding this comment.
Self note: instant_upload_source_path is saved, the comment is wrong.
|
Wow, awesome refactor and fast-timing for Android7 ! Let's release it! 👍 |
|
For the record: Travis fails getting build dependencies from Google, code is OK. Let's see with a retry, |
|
@davivel i have noticed this: The "Camera MX" app does not upload the videos taken into its folder `...DCIM/CameraMX' . The following log is print at the moment the video starts recording:
With this app the photos works correctly. I have tested other apps and works properly with videos and photos. Checked with empty and non-empty folder. Perhaps is a corner case that only happens with this app, but having a look can be a good idea :) Checked in Android7 (Huawei 6P), Android6 (Nexus9) and Android5 (Nexus5) |
|
I'll have a look to see if we can do something fast. Video recording might become a problem. Seems that every camera app handles file its-very-own-way. I tested with Google Camera and OpenCamera, both save the video in different ways (OpenCamera keeps it simple). Let me debug a bit and cross your fingers. Any case involving video uploads should be blocked meanwhile. |
|
MOG. The camera is "writing&closing" the same file twice after creating. Probably it's doing:
We are not tracking that workflow. And it's a crappy one, since it's indistinguishable of updating a video file, what we didn't want to track. I need to think a bit about this. Ideas are welcome. Instant video was working for this app in Android 6 with ownCloud 2.1.0 ? |
|
i'm not pretty sure but i think they did. Checking... |
|
@davivel checked with 2.1.0 + Camera MX and works correctly. Videos & Photos are uploaded without error. |
|
OK, seems I have a solution. |
|
With Android5 and Android4 (backwards compatibility) Steps:
Actual behaviour: In uploads view, the video appears twice as pending to upload Video_1234.mp4 Expected behaviour: In uploads view, only one file related to the video appears in the queue Nexus5 v5.0.1 |
|
Really? That .tmp never should have got here. What camera app are you using in that device? |
|
i used default camera. |
|
OK, that was stupid from my side. Fixed now also, @jesmrec |
be3b833 to
b098be8
Compare
Bug (low severity)Steps:
Actual behaviourAll the photos/videos are uploaded but the last one, that have to be tapped manually to upload Expected behaviourAll the photos are uploaded From plane mode to wifi mode -> works fine Tested with Android 7. Lower Android versions, work correctly |
|
Taking a look. |
Bug (only in samsung note 4 Android 6)
Actual behaviourNothing is uploaded Expected behaviourContent is uploaded |
|
That's worse. Checking. |
|
As discussed offline: this last bug is very, very specific of the OS version + camera app + camera app configuration, maybe also model, and there is no way we can fix this with a limited effort. Let's open another issue for it. |
|
@davivel working fine. Approved. Now we should be aware of posible differences related to device/software vendors that can cause exceptions like #1783 (comment). Great job ;) |
… in camera folder
…curacy of undesired renaming check
…ces that network is really available
98a052b to
99352d4
Compare
|
Rebasing. Great job you :D |
Fixes #6, and means instant uploads... :
New requisites for camera apps will be:
BUGS & IMPROVEMENTS