Custom name for BLOB URL

前端 未结 3 1869
后悔当初
后悔当初 2020-11-29 08:13

We have an Angular application that gets some input parameters and sends them to the back end where they get processed. The processing result is a pdf file that we want to o

3条回答
  •  野性不改
    2020-11-29 08:49

    I was looking for the same and actually you can add a download attribute for the link and that would make the trick on Chrome, I didn't tried in IE so far.

    Your file
    

    and this is an example with Angular 5

    Your file
    

    Hope that work for you as well.

提交回复
热议问题