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
⚠ 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. ⚠
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
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
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!
Support →
Grocery CRUD Enterprise →
setFieldBlobStarted by MustafaPHP, 21 Apr 2020 ![]() |
|
![]() |
||
Support →
I have a question →
How to create a pdf from read viewStarted by Luiz_Techboard_BR, 17 Mar 2020 ![]() |
|
![]() |
||
Support →
I have a question →
store image file into database from grocery crudStarted by jep, 07 Dec 2018 ![]() |
|
![]() |
||
Support →
I have a question →
Change file path on list viewStarted by Eduardo, 04 Feb 2018 ![]() |
|
![]() |
||
Support →
I have a question →
how to set upload field dynamically on condition that a field has some specific valueStarted by Emad Karhily, 14 Jan 2017 ![]() |
|
![]() |
0 members, 0 guests, 0 anonymous users