disk.file.uploadversion
disk.file.uploadversion
Uploads a new version of the file.
The response contains the same structure as in disk.file.get.
Parameters
Parameter | Description |
---|---|
id | File ID. |
fileContent | Similar to 'DETAIL_PICTURE' in the example Files Processing. |
Example
BX24.callMethod( "disk.file.uploadversion", { id: 4, fileContent: document.getElementById('test_file_input') }, function (result) { if (result.error()) console.error(result.error()); else console.dir(result.data()); } );
© «Bitrix24», 2001-2024