photosV2.getUploadUrl ✎ Edit on GitHub
The method starts photo upload workflow and returns an upload URL
ID of user who uploads photos. Parameter must be set when there is no session.
Album ID. If not set photos will be added to the Personal album.
Group ID. Set this and aid to upload into a group album or to create a topic in a group.
Number of photos to upload. Default: 1.
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.
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.)
AuthorizationSession is optional (for External applications - required)
See the full image upload example (in Russian)
User session data