Download Headers Problem
-
Hi, my problem is that all downloads are forced to be attachments, where I need inline downloads to open PDF directly in browser.
You force it including the download http headers by code:
header( 'Content-Type: application/octet-stream' ); header( 'Content-Disposition: attachment; filename=' . $filename );Is it possible for you to add a do_action hook beetwen header commands and readfile command? So I could change headers as I need. Something like this:
do_action( 'lana_downloads_manager_after_download_http_headers', $download_id );Thank you very much
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Download Headers Problem’ is closed to new replies.