diff --git a/app/src/main/java/foundation/e/drive/operations/UploadFileOperation.java b/app/src/main/java/foundation/e/drive/operations/UploadFileOperation.java index e0fdfe24069d3e037d5f3bc4fb26bcb357101857..ff3f00c8d8bbe159936216177161ef62f118ce21 100644 --- a/app/src/main/java/foundation/e/drive/operations/UploadFileOperation.java +++ b/app/src/main/java/foundation/e/drive/operations/UploadFileOperation.java @@ -110,9 +110,9 @@ public class UploadFileOperation extends RemoteOperation { mustRestart = false; } else { //Si les répértoires ou mettre le fichier n'existe pas, on les ajoutes. - if (uploadResult.getCode() == ResultCode.FILE_NOT_FOUND ) { - resultCode = ResultCode.FILE_NOT_FOUND; - Log.d(TAG, "Catched a File not found result for : "+file.getName()+", create missing remote path then retry"); + if (uploadResult.getCode() == ResultCode.CONFLICT ) { + resultCode = ResultCode.CONFLICT; + Log.d(TAG, "Catched a conflict result for : "+file.getName()+", create missing remote path then retry"); final String remoteFolderPath = targetPath.substring(0, targetPath.lastIndexOf(FileUtils.PATH_SEPARATOR)+1 ); final CreateFolderRemoteOperation createFolderOperation = new CreateFolderRemoteOperation(remoteFolderPath, true ); try{