photosV2.getUploadUrl
The method starts photo upload workflow and returns an upload URL
Name | Required | Type | Description |
---|---|---|---|
uid | false | | ID of user who uploads photos. Parameter must be set when there is no session. |
aid | false | | Album ID. If not set photos will be added to the Personal album. |
gid | false | | Group ID. Set this and aid to upload into a group album or to create a topic in a group. |
count | false | | Number of photos to upload. Default: 1. |
placeholders | false | | Returns an upload URL with placeholders rather than IDs. Allows uploading multiple images by small portions specifying IDs subset during the second stage. Default: false. |
topicLink | false | | |
target_id | false | | |
sizes | false | | Comma-separated images sizes list in bytes. Allowed list lengths: 0 (not set), 1 (size of the largest image), and count. Allows to avoid proceeding to the stage 2 when some sizes exceed the limit. (If the parameter is not set and any image is too big, stage 2 will fail anyway.) |
Authorization
Session is optional (for External applications - required)Required permissions
- PHOTO_CONTENT
See the full image upload example (in Russian)
Type
Application paramters
User session data
|