Then is there any way by which the file is saved to the storage such that the user can open and view that file ??
You can used after file save to read html and show webviewer
https://docs.kodular.io/components/storage/file/#after-file-saved
1.If you want to make file accessible to user then save it to external storage.
2.But why are you manually saving file.Just download it using Download component by setting download url to that websiteās url.
He want to download a files which didnāt start with http or https.
There he is getting the error.
How can I save it to external storage ?
Already tried it but getting error.
I dont want to show the content in the webviewer. I just want to save and keep the file in the storage.
Start file name with /
What error are you getting?
I tried doing that but that way I canāt find the file anywhere in my device. I guess that saves the file in sdcard which is not there in my device.
/
saves file to external storage which can be phone storage also.
Which websiteās source are you trying to download?
Yes you can checking first if the file exit ( you can show button to open file )
https://docs.kodular.io/components/storage/file/#exists
The website I am using is created by me only:
But I cant find the file anywhere.
Can you show your blocks?
On companion or installed apk ?
Here are my blocks
getHTMLContent(): gets the whole Html code
On both.
File should be in the root of external storage.
Also have you granted write permission (in apk)?
Are you sure that you can save file to assets?
I donāt agree.
These are relative paths:
//
: for assets
/
: for external storage
Yes
Ok. Let me try and check
Look at the blocks
This happens when I save file to assests ( in companion )