-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cordova file plugin not working with Capacitor #1620
Comments
Can you provide a proper sample code that I can use on a blank project, or even better if you can provide a sample app?
What explained on that comment should work, I've done similar things and worked, if you don't use an encoding then it's considered a base64 string, as long as your string is a valid base64 string it should work.
I suppose you mean in the README. I removed it yesterday. |
hi jcesarmobile,
I hope I can give you a complete app for tomorrow,
for me it is important to solve the problem with the file plugin, that I use a lot in my app, along with file opener and pdfmake ...
you're right, and I've also seen the removal .. sorry for my google translator english : ) and thanks again |
https://github.com/strogof/capacitorFilePugin |
OMG, I've spent countless hours trying to figure out what was wrong, and in the end, it was a problem with the clobbers and merges order which is already fixed by #1616 Thanks for the sample app. BTW, the Capacitor writeFile is not working because you are not correctly converting the Blob to base64 string |
hi, thanks again |
Wait for next release |
Oh, even with the fix it won't work in your app because of #1564
|
ok, I can save my files |
No, the problem is you are using |
ok many thanks, but I think it is enough for me |
@strogof have you found out the way to work this on Electron? i.e. But this plugin is working fine on Android platrrom. Any clue? |
@sampath Lokuge
I think that Capacitor is not yet ready for Electron
I gave up the idea of using it for the moment ...
Il giorno gio 22 ago 2019 alle ore 19:52 Sampath Lokuge <
notifications@github.com> ha scritto:
… @strogof <https://github.com/strogof> have you find out the way to work
this on Electron? i.e. Filesystem.writeFile for me it gives Unable to
write file Error: ENOENT: no such file or directory, open
'C:\Users\Sampath\Documents\secrets\text.txt'
But this plugin is working fine on Android platrrom. Any clue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1620?email_source=notifications&email_token=AC4FW2C2IAOGB2NTFVSNK6DQF3G5FA5CNFSM4HSBQME2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD454EOI#issuecomment-524010041>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AC4FW2DNDPLUP7ZPLJEAWXLQF3G5FANCNFSM4HSBQMEQ>
.
|
@strogof Yes, it is true. I also gave up. |
the code below works without problems in ionic 4
in capacitor I get always err 5 encoding_err as result when calling this.file.writeFile
I tried with Filesystem api but no blob, only string in data options (no luck with (#31 (comment))
the community plugin Downloader does not work
last but not least, why, ionic team announce Capacitor release 1.0 and here you say is still in Beta?
anyway, thanks for the great work done so far
The text was updated successfully, but these errors were encountered: