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.
User Documentation
How to Get Storage Description
To work with storage, you need its identifier.
- Retrieve a list of available storages using the disk.storage.getlist method.
- Find the required storage in the list and use its
ID. - 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:
- retrieve a list of files and folders using the disk.storage.getchildren method
- create a folder using the disk.storage.addfolder method
- upload a file using the disk.storage.uploadfile method
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:
diskWho can execute the method: depends on the method
|
Method |
Description |
|
Returns the description of storage fields |
|
|
Returns storage by identifier |
|
|
Renames application storage |
|
|
Returns a list of available storages |
|
|
Returns a list of storage types |
|
|
Creates a folder in the root of the storage |
|
|
Returns a list of files and folders located in the root of the storage |
|
|
Uploads a new file to the root of the storage |
|
|
Returns the description of application storage |