Skip to content

Save to Album

Upload local file (photo or video) and save to device album.

Interface Description

Interface Type

saveMediaFile

Parameters

ParameterTypeRequiredDescription
deviceIdstringDevice ID
filestringFull path of local file

Return Value

javascript
true  // Returns true on successful save

Basic Usage

javascript
// Save local photo to device album
await apiInvoke('saveMediaFile', {
    deviceId: 'P72578581E07',
    file: 'D:/Photos/test.jpg'
});

console.log('File saved to album');

Cooperation: try.catch@foxmail.com