I\'m using typical PHP code to download documents:
header(\'Content-Type: \' . $mimeTypes[$fileext]);
header(\'Content-Disposition: attachment; filename
The following php worked for me
header("Cache-Control: private");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=".$file."");
header("Content-Transfer-Encoding: binary");
header("Content-Type: binary/octet-stream");
readfile ($link);
P.S. - I used the File extension in the $file variable only, so no need to mention mime type...
Hope this helps :)