angular - Ionic2 App, File does not exist -


openfile(){     console.log("openfile");     this.fileopener.open('/assets/hello', 'application/rtf')   .then(() => console.log('file opened'))   .catch(e => console.log('error openening file', e));   } 

i want open rtf file in assets folder in app. have used file opener plugin. when i'm running app got error openening file – {status: "9", message: "file not exist"}.

it's impossible open files "assets/*" fileopener. fileopener needs real file path.


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -