Index: chrome/browser/resources/file_manager/js/file_selection.js |
diff --git a/chrome/browser/resources/file_manager/js/file_selection.js b/chrome/browser/resources/file_manager/js/file_selection.js |
index cd7b1ee1715f4190ec8da1ef977f9c989b56eff1..0a74cc52a70007c191d8569da149150bd7818127 100644 |
--- a/chrome/browser/resources/file_manager/js/file_selection.js |
+++ b/chrome/browser/resources/file_manager/js/file_selection.js |
@@ -264,7 +264,8 @@ FileSelectionHandler.prototype.updateOkButton = function() { |
var selectable; |
var dialogType = this.fileManager_.dialogType; |
- if (dialogType == DialogType.SELECT_FOLDER) { |
+ if (dialogType == DialogType.SELECT_FOLDER || |
+ dialogType == DialogType.SELECT_UPLOAD_FOLDER) { |
// In SELECT_FOLDER mode, we allow to select current directory |
// when nothing is selected. |
selectable = this.selection.directoryCount <= 1 && |