Actions37
- 👥 Сбор аудитории Actions
- 📝 Постинг контента Actions
- ❤️ Взаимодействия Actions
- 💬 Сообщения Actions
- 🔧 Утилиты Actions
📝 Постинг контента → Загрузить документ
AI-generatedSummary
Upload a document file to VKontakte either to a community wall or a private message and return an attachment string for further use; the file source can be a URL or binary data from a previous node.
Inputs
- Источник файла (required) — Choose between downloading the document from a URL or using binary data from a previous node.
- URL файла (required) — Specify the URL to download the file from (required if file source is URL).
- Имя бинарного поля — Name of the binary property in the input item containing the file (used if file source is binary).
- Назначение (required) — Choose whether to upload the document to a wall or a message.
- ID группы — If uploading to a wall, specify the group ID (0 for own wall).
- Peer ID (получатель) — If uploading to a message, specify the recipient's peer ID.
- Название файла — Optional title of the document as it will appear in VK.
Output shape
A single JSON object representing the uploaded document, including an attachment string in the format 'doc{owner_id}_{doc_id}' for referencing in posts or messages.
Throws an error if uploading fails or the response is not as expected. The attachment string can be used in subsequent VK content posting operations.