Skip to Content

How to download pdf file in Ui5?

Hi everyone,

I'm working on SRM new UI add-on shopping cart.

I'm uploading .pdf and .doc file with file upload control.

I can download .doc file directly. But I can't download .pdf file directly.

When I push pdf file open a new tab. I want to download file directly.

How can I solve this problem?

Best regards

Burak Oral.

1.jpg (160.4 kB)
2.jpg (16.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Feb 16, 2016 at 08:52 AM

    I solve this problem How to show file name when calling GET_STREAM . But this method does not work in internet explorer. This work in chrome.

    How can I solve this problem in internet explorer?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2016 at 03:30 PM

    Burak,

    have you tried adding a HTML anchor <a href="<URL_TO_PDF">[Your PDF NAME]</a>

    you should be able to open it like that

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2016 at 03:41 PM

    This should be set through header request from the browser to the server and back, but assuming you won't have control of server-side configuration, you can try the download attribute for anchor element:

    file.pdf" download="file.pdf" target="_blank">Download Button

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 25, 2016 at 04:20 PM

    Also I wrote file path to my browser with manual, It opens again display mode.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.