Upload a photo for a post
vk_photos_upload_wallUpload a photo from a URL or local file to VK and get an attachment string for use in wall posts or edits.
Instructions
Upload a photo so it can be attached to a post. Takes a URL or a local file path, runs VK's three-step upload, and returns an attachment string like photo-1_2 to pass to vk_wall_post or vk_wall_edit. group_id is positive here, without the minus sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image URL (http/https) or absolute local file path | |
| caption | No | Photo caption | |
| group_id | No | Community ID or its short name (e.g. apiclub). Positive and without the minus sign — the minus belongs to owner_id on a wall, not here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Photo ID | |
| owner_id | No | Owner of the uploaded photo | |
| attachment | Yes | Attachment string such as photo-1_2, ready to pass to vk_wall_post |