Skip to content

android save img to Album error  #16714

Closed
@baokuanze

Description

@baokuanze

let options = {
fromUrl: url,
toFile: ${path}/${newName}${extension},
background: true
};
RNFS.downloadFile(options).promise.then(res => {
cb(null, res)
var tempURl = path+'/'+newName+extension;
try{
var promise = CameraRoll.saveToCameraRoll(tempURl,'photo');
promise.then(succ=>{
alert('succ:'+JSON.stringify(succ));
}).catch(err=>{
alert('err:'+JSON.stringify(err));
})
}catch(err){
alert(err);
}
}).catch(err => {
cb(err)
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions