Метод DocsUploadView.setParent
Устанавливает место назначения загрузки в указанную папку. Это переопределяет setIncludeFolders
на false.
Подпись
setParent(parentId: string): DocsUploadView;
Подробности
Необязательный | Нет |
---|
Финал | Нет |
---|
Защищено | Нет |
---|
Статический | Нет |
---|
Параметры
Имя | Тип | Необязательный | Описание |
---|
parentId | string | Нет | |
Возврат
DocsUploadView
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-09 UTC.
[null,null,["Последнее обновление: 2025-01-09 UTC."],[[["`setParent()` sets the upload destination to a specific folder, identified by its ID."],["This method overrides the `setIncludeFolders` option to `false`, preventing folder uploads."],["It accepts a mandatory `parentId` parameter as a string to specify the target folder."],["The method is a part of the `DocsUploadView` and returns the same object for chaining."]]],["The core functionality is setting the upload destination folder. The `setParent` method, which accepts a `parentId` string as a mandatory parameter, defines this destination. Calling this method also disables the `setIncludeFolders` feature. This method returns a `DocsUploadView` object, enabling further configuration. No optional, final, protected, or static modifiers are applied to this method.\n"]]