the file is downloaded as .application_pdf how to fix this
Try setting type as pdf, like this:
pdf
const type = 'pdf'
its not working