Reactive open PDF in browser instead of downloading it?

Normally we could do a preparation with a download and then a pdf is opened in the browser instead of downloaded. But how can we do this with reactive?

Hi freek,

A possible way to do that in reactive is using a rest enpoint for that.

Cheers,
Tiago Simões

Uhh say what?

On this moment I have a button that calls a service action to get the PDF and then a download action but that does really download the file instead of opening it in the browser..

Hi freek,

Because not all browsers/file type support opening directly in browser there isn't that option in reactive. To accomplish that behavior you might need a workaround which is creating a rest endpoint that sends the file with the correct header so the browser opens it instead of downloading.

Cheers,
Tiago Simões