I use the SithasoDaisy to create a form - to the user fill some fields - and download a file (json), using this code:
It works fine in the computer browser, but in the mobile browser the extension (.cad) is change to .txt and when I attach the file into WhatsApp the name change to "null.txt".
I think that I could save the json as a zip file to avoid this.
Could I use this PizZipUtils object - from this example - to make this?
Thanks in advance for any help.
B4X:
Dim txt As String = banano.ToJson(ToMap)
app.Download(txt, file_name & ".cad")
It works fine in the computer browser, but in the mobile browser the extension (.cad) is change to .txt and when I attach the file into WhatsApp the name change to "null.txt".
I think that I could save the json as a zip file to avoid this.
Could I use this PizZipUtils object - from this example - to make this?
Thanks in advance for any help.