Drive Storage: Overview of Methods

Storage is the Drive in Bitrix24 where you can store documents and files, create folders, and retrieve lists of contents.

Quick navigation: all methods

Types of Storage

In Bitrix24, there are three types of storage:

  • My Drive — personal storage for the user
  • Company Drive — company storage
  • Group Drive — storage for the working group

You can get a list of storage types using the disk.storage.gettypes method.

How to Get Storage Description

To work with storage, you need its identifier.

  1. Retrieve a list of available storages using the disk.storage.getlist method.
  2. Find the required storage in the list and use its ID.
  3. Get the storage parameters using the disk.storage.get method.

The description of all storage fields is returned by the disk.storage.getfields method. To work with application storage, use the disk.storage.getforapp method.

Working with Storage Contents

In the root of the storage, you can perform the following operations:

To work with nested folders and files, use the disk.folder.* methods.

How to Rename Storage

You can only rename application storage — for this, use the disk.storage.rename method. Personal, company and group storages cannot be renamed.

Overview of Methods

Scope: disk

Who can execute the method: depends on the method

Method

Description

disk.storage.getfields

Returns the description of storage fields

disk.storage.get

Returns storage by identifier

disk.storage.rename

Renames application storage

disk.storage.getlist

Returns a list of available storages

disk.storage.gettypes

Returns a list of storage types

disk.storage.addfolder

Creates a folder in the root of the storage

disk.storage.getchildren

Returns a list of files and folders located in the root of the storage

disk.storage.uploadfile

Uploads a new file to the root of the storage

disk.storage.getforapp

Returns the description of application storage