|
@@ -430,6 +430,9 @@ public class UploadFileOperation extends SyncOperation {
|
|
|
|
|
|
result = checkConditions(originalFile);
|
|
|
|
|
|
+ if (result != null) {
|
|
|
+ return result;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -744,7 +747,7 @@ public class UploadFileOperation extends SyncOperation {
|
|
|
|
|
|
private RemoteOperationResult checkConditions(File originalFile) {
|
|
|
RemoteOperationResult remoteOperationResult = null;
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if (Device.getNetworkType(mContext).equals(JobRequest.NetworkType.ANY) ||
|
|
|
ConnectivityUtils.isInternetWalled(mContext)) {
|
|
@@ -791,6 +794,10 @@ public class UploadFileOperation extends SyncOperation {
|
|
|
|
|
|
result = checkConditions(originalFile);
|
|
|
|
|
|
+ if (result != null) {
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
checkNameCollision(client, null, false);
|
|
|
|