Quote from
luishp on February 18, 2020, 12:49 pm
Thank you. So a question came to my mind, what "VarToLocalFile" is useful for ? This behavior may be surprising to the user.
It's surprising only for those not used to WebApps.
Using VarToLocalFile you offer your users a way to download whatever useful information for them.
For example, in aprendiendo.top you can download your own complete projects in a propietary JSON format, including images, questions, answers... in an unique file. Later you can load the file again into the app (or after registration, upload it to a cloud database).
As the downloaded file has a propietary format and extension, the web browser will not be able to open it so it will just ask where to save it. Most web apps work this way. As a more advanced example, you can take a look at photopea (Online PhotoShop clone)
Thank you. So a question came to my mind, what "VarToLocalFile" is useful for ? This behavior may be surprising to the user.
It's surprising only for those not used to WebApps.
Using VarToLocalFile you offer your users a way to download whatever useful information for them.
For example, in aprendiendo.top you can download your own complete projects in a propietary JSON format, including images, questions, answers... in an unique file. Later you can load the file again into the app (or after registration, upload it to a cloud database).
As the downloaded file has a propietary format and extension, the web browser will not be able to open it so it will just ask where to save it. Most web apps work this way. As a more advanced example, you can take a look at photopea (Online PhotoShop clone)
Vadim and CDY@44 have reacted to this post.