Save to Album
Upload local file (photo or video) and save to device album.
Interface Description
Interface Type
saveMediaFileParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deviceId | string | ✅ | Device ID |
file | string | ✅ | Full path of local file |
Return Value
javascript
true // Returns true on successful saveBasic Usage
javascript
// Save local photo to device album
await apiInvoke('saveMediaFile', {
deviceId: 'P72578581E07',
file: 'D:/Photos/test.jpg'
});
console.log('File saved to album');