Is there a way to incorporate the solution provided in this SO link ?
Actually That’s exactly what I’ve done and what happens is that a new window opens, the file auto downloads and the new window closes.
Hi @zain910128
For me it is not the case (Not sure what going wrong)
My file is saved in database…
This is my database pic
Looks like this is a browser issue because it works fine in chrome, but not in firefox.
So, is there a way to use the stackoverflow solution to ensure that it always opens in a new tab ?
@zain910128
Well i added HTML element as mentioned in one of the answers of stack overflow…
It works as expected (Tested in Firefox too)
You can try like this…
Thanks. I’ll try that in a bit.
Do you also know how to use the Content type as suggested in the main answer ?
Content-Type: application/pdf
Content-Disposition: inline; filename="filename.pdf"
@zain910128
Well i guess this is related to backend/API stuff…
Not sure how to do that
This topic was automatically closed after 70 days. New replies are no longer allowed.