⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Prevent PDF Open in Browser



ariadi

ariadi
  • profile picture
  • Member

Posted 13 April 2017 - 03:01 AM

Hi there,

 

I have simple question, how to prevent GC to open pdf file in browser after uploading. Instead of that I want the file is only downloading.

 

 

Your answer is appreciated.

 

Rgds,

 

Ariadi


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 13 April 2017 - 10:05 AM

Well you can do the same by altering the header of the file.

If you set the header of the file being downloaded to application/octate - it will force the file to be popped up for downloaded rather then open in the browser directly.

 

Happy GCing :)


mollyhines

mollyhines
  • profile picture
  • Member

Posted 01 October 2019 - 07:19 AM

Well you can do the same by altering the header of the file. short life

If you set the header of the file being downloaded to application/octate - it will force the file to be popped up for downloaded rather then open in the browser directly.

 

Happy GCing :)

 

Thanks for this - much appreciated!