|
@@ -24,7 +24,6 @@ import android.net.Uri
|
|
|
import android.os.Parcelable
|
|
|
import com.nextcloud.client.account.User
|
|
|
import com.owncloud.android.R
|
|
|
-import com.owncloud.android.files.services.FileUploader
|
|
|
import com.owncloud.android.files.services.NameCollisionPolicy
|
|
|
import com.owncloud.android.lib.common.utils.Log_OC
|
|
|
import com.owncloud.android.operations.UploadFileOperation
|
|
@@ -36,16 +35,16 @@ import com.owncloud.android.utils.FilesUploadHelper
|
|
|
import com.owncloud.android.utils.UriUtils.getDisplayNameForUri
|
|
|
|
|
|
/**
|
|
|
- * This class examines URIs pointing to files to upload and then requests [FileUploader] to upload them.
|
|
|
+ * This class examines URIs pointing to files to upload and then requests [FilesUploadHelper] to upload them.
|
|
|
*
|
|
|
*
|
|
|
- * URIs with scheme file:// do not require any previous processing, their path is sent to [FileUploader] to find
|
|
|
+ * URIs with scheme file:// do not require any previous processing, their path is sent to [FilesUploadHelper] to find
|
|
|
* the source file.
|
|
|
*
|
|
|
*
|
|
|
* URIs with scheme content:// are handling assuming that file is in private storage owned by a different app, and that
|
|
|
* persistence permission is not granted. Due to this, contents of the file are temporary copied by the OC app, and then
|
|
|
- * passed [FileUploader].
|
|
|
+ * passed [FilesUploadHelper].
|
|
|
*/
|
|
|
@Suppress(
|
|
|
"Detekt.LongParameterList",
|
|
@@ -115,7 +114,7 @@ class UriUploader(
|
|
|
private fun isSensitiveUri(uri: Uri): Boolean = uri.toString().contains(mActivity.packageName)
|
|
|
|
|
|
/**
|
|
|
- * Requests the upload of a file in the local file system to [FileUploader] service.
|
|
|
+ * Requests the upload of a file in the local file system to [FilesUploadHelper] service.
|
|
|
*
|
|
|
* The original file will be left in its original location, and will not be duplicated.
|
|
|
* As a side effect, the user will see the file as not uploaded when accesses to the OC app.
|