I'd like to download a file in a particular folder.
My file comes from a .php file, it works fine on Firefox with a window.location.href, with this code in the download.php
base64_decode($body) is the binary content of my file ...
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Content-Description: File Transfer');
header('Content-Type: ' . type($_GET['name']));
header('Content-Disposition: attachment; filename=' . $_GET['name'] . ';');
I tried window.open, widget.openURL, window.location.href ...
My best result is with window.location.href but my widget always open the file ( saving it to a temp folder ( Mass Memory/system/dmgr on my N97 ) )
Can I ask a simple download, without opening, giving a default folder for save ?