⚠ 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 forum is read-only and soon will be archived. ⚠


Prevent PDF Open in Browser

pdf upload

  • Please log in to reply
2 replies to this topic

#1 ariadi

ariadi

    Newbie

  • Members
  • Pip
  • 1 posts

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



#2 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

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 :)



#3 mollyhines

mollyhines

    Newbie

  • Members
  • Pip
  • 1 posts

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!







Also tagged with one or more of these keywords: pdf, upload

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users