I am really wonder about with case. I have never met before this situation. I have a file download process that mean: user can select a file from a list, then press the download button and a small popup window appear to download the file...or it should be appear.
In the development environment everything is fine but the production server is something wrong, because after the pushed the download button the process display the content of the file.
I use the following header settings:
'Content-type': 'application/Octet-stream'
'Content-Disposition: ': 'attachment; filename='.$file
'Content-Length: ': filesize($path.$file)
'Content-Description': 'File Transfer';
I tried to use text/plain to content-type, then this settings, but it is not helped me :(
Questions:
- is it possible that the problem could be with the file extension? This file extension is: cfg - I think not because the download process is working in developer environment.
- is it possible that needs some Apache settings/modification?
(I use Symfony2 framwork, PHP version: 5.3.10)
Please help!
Thank you!