I've been trying for a couple of days to solve this issue but nothing so far.
Nothing happens when a "Download" button gets pressed.
No error, no message, just nothing at all.
The action is called by an input:
<input type="submit" name="cmdfiledownload" id="cmdfiledownload" class="button" >
A validator checks if the file has already been generated, and in case creates it before sending it back:
// Process download
if(is_file($filepath)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($filepath).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($filepath));
ob_clean();
flush(); // Flush system output buffer
readfile($filepath);
exit;
}
So, there is never a file URL exposed anywhere on the page.
Its location is NOT into public_html so it can't be reached otherwise.
The system works perfectly in a normal browser (Chrome mobile, AdBlock Beta).
I just can't make it work into inappbrowser.
Uploads work without issues.