|
@@ -34,7 +34,6 @@ import com.owncloud.android.lib.common.operations.RemoteOperationResult
|
|
|
import com.owncloud.android.lib.common.operations.RemoteOperationResult.ResultCode
|
|
|
import com.owncloud.android.lib.common.utils.Log_OC
|
|
|
import com.owncloud.android.operations.UploadFileOperation
|
|
|
-import com.owncloud.android.operations.UploadFileOperation.uploadedSourcePath
|
|
|
import com.owncloud.android.utils.ErrorMessageAdapter
|
|
|
import com.owncloud.android.utils.theme.ViewThemeUtils
|
|
|
import java.io.File
|
|
@@ -238,7 +237,7 @@ class FileUploadWorker(
|
|
|
}
|
|
|
|
|
|
private fun cleanupUploadProcess(result: RemoteOperationResult<Any?>, operation: UploadFileOperation) {
|
|
|
- if (operation.originalStoragePath == uploadedSourcePath) {
|
|
|
+ if (operation.originalStoragePath == operation.uploadedSourcePath) {
|
|
|
// TODO
|
|
|
// This is not ideal fix. When uploading file to the encrypted folder server returns 404 FILE_NOT_FOUND
|
|
|
// However file upload successfully completed. This fix mimic success, if upload successfully completed with
|