-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace the ownCloud file picker with the Android one #2899
Comments
Add another case: share with ownCloud Case 1:
Case 2:
|
That's not the same case. Those cases uses the oC file picker to select where you want to store those files, but in the oC hierarchy. This issue is to select which folder you want to allow autouploads and uses system hierarchy, so we can use android one. |
ok you meant the folder from the camera app (external from oC). I mistaked it with the camera upload folder |
It is possible to use this file picker however it will return SAF URIs, which means we should then move the storage operations over to SAF as well. Another more ugly solution would be to translate SAF URIs to native Unix file paths. Lines 111 to 132 in 5ba172b
A related issue to this: #2877 |
It was proposed to make this work the same way as we made single file upload work. What we do there is copy the file from a |
We'll need to replace the ownCloud file picker with the SAF one in order to make the camera uploads work with ScopedStorage |
The old camera uploads job has been replaced with a new worker A notification with how many pictures and videos will be synced is shown now. Updated several files to kotlin and new architecture. Pros:
Cons:
To discuss:
DifferencesFlowPrevious flow:
New flow:
With this change, we won't use temporal files, and we won't store the file on the oC folder. Disabling camera uploadsPrevious behavior when disabling camera uploads:
New behavior when disabling camera uploads:
PRO: More consistent way. If you disable the feature, it is completely reset. ConnectionPrevious behavior when the device is not connected:
New behavior when the device is not connected:
PRO: It won't try to upload the files till the device is connected. Known issues
|
for me it's ok for the moment to keep 15 mins. Why should we set a longer scan frequency?
interesting new features... for the future.
if that makes the code easier to mantain, no problem from my side. But the initial reset would be only the camera path. With this improvement, will we need a complete reset of the feature (like the 2.18 one)? |
Well, I think that maybe it is not needed to trigger camera uploads almost 100 times per day, but it is fine for me to keep the previous behavior.
Yes, I think that camera path reset will be enough. |
Could this parameter be setup-able, or brandable? that means... giving users the choice to select the scan frequency (with the minimum of 15 mins, for sure) |
Yes, it could be brandable, or customizable. Probably in another issue 👍 |
As a continuation of #2436, where we replaced the ownCloud file picker with the Android one when uploading files, oC app should replace completely the file picker with the android one.
This oC file picker is still used to select the camera folder available for Camera Uploads in Preferences. Steps:
1- Open settings
2- Enable picture uploads
3- Choose camera folder
With this replacement, we will perform a big cleanup and it will be ready for Scoped Storage.
TASKS
PR
QA
Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Release_2.18.1/Camera%20uploads%20%2B%20picker.md
Bugs / improvements
The text was updated successfully, but these errors were encountered: