This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Description
here's my code either I use copyFile or moveFile it always goes to catch handler outside my promise fuction
moveFileToStorage(uri) {
const _extension = '.' + this.getFileExtension(uri);
const _name = this.getFileName(uri) + _extension;
const _newPath = this.myStoragePath;
const _newName = 'camera_' + this.hashName() + _extension;
const _uri = uri.substring(0, uri.lastIndexOf('/') + 1);
return this.file.moveFile(_uri, _name, _newPath, _newName);
}
moveFileToStorage(uri).then((res) => { } ).catch( (err) =>{ err } ) <-- goes here catch handler
heres what zone output, actually I don't get what it mean, just a newbie in ionic 2 development.
{"__zone_symbol_currentTask": {"type":"microTask", "state":"notScheduled", "source":"Promise.then", "zone":"angular","cancelFn":null,"runCount"0}}
thanks.