2024-06-05 10:19:46 +00:00
|
|
|
---
|
|
|
|
sidebar_position: 10
|
|
|
|
---
|
|
|
|
|
2024-10-12 23:29:51 +03:00
|
|
|
# Get file description
|
|
|
|
Gets a blank description template for uploading a file
|
2024-06-05 10:19:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-12 23:29:51 +03:00
|
|
|
`Function GetFileDescription(Val Clear = False) Export`
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|-|-|-|-|
|
2024-10-12 23:29:51 +03:00
|
|
|
| Clear | --empty | Boolean | True > structure with empty valuse, False > field descriptions at values |
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - File description
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-07-10 14:05:58 +03:00
|
|
|
<br/>
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-07-10 13:58:29 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
```bsl title="Code example"
|
2024-09-29 19:41:20 +03:00
|
|
|
Result = OPI_GoogleDrive.GetFileDescription();
|
2024-06-05 10:19:46 +00:00
|
|
|
```
|
2024-10-15 09:53:37 +03:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
|
2024-07-10 11:59:55 +03:00
|
|
|
|
2024-06-05 10:19:46 +00:00
|
|
|
|
2024-08-13 15:52:26 +03:00
|
|
|
```json title="Result"
|
2024-09-29 21:40:58 +03:00
|
|
|
{
|
|
|
|
"MIME": "image/jpeg",
|
|
|
|
"Name": "New file.jpg",
|
|
|
|
"Description": "This is a new file",
|
|
|
|
"Parent": "root"
|
|
|
|
}
|
2024-08-13 15:52:26 +03:00
|
|
|
```
|