Get file upload status
Returns file upload statuses.
Parameters:
- survey_id: form ID.
- data: list of files whose statuses need to be checked. Download access to the file is verified.
Request
POST
https://api.forms.yandex.net/v1/surveys/{survey_id}/files/verify
Path parameters
|
Name |
Description |
|
survey_id |
Type: string Pattern: Example: `` |
FileIn
|
Name |
Description |
|
path |
Type: string File download path Example: |
|
url |
Type: string File download URL Example: |
Example
{
"path": "example",
"url": "example"
}
Responses
200 OK
OK
Body
application/json
[
{
"name": "example",
"path": "example",
"size": 0,
"url": "example",
"check_status": "check"
}
]
Type: FileOut[]
FileCheckStatusType
An enumeration.
Type: string
Enum: check, ready, infected, error, deleted
FileOut
|
Name |
Description |
|
name |
Type: string File name Example: |
|
path |
Type: string File download path Example: |
|
size |
Type: integer File size |
|
check_status |
All of 1 type
File check status Example: |
|
url |
Type: string File download URL Example: |
Example
{
"name": "example",
"path": "example",
"size": 0,
"url": "example",
"check_status": "check"
}
Was the article helpful?
Previous
Next