dimanche 27 septembre 2020

Downloading a file with html anchor tag fails for "Failed - No file"

When trying to add <a href="/someUrl" download="amr.amr">Download</a>, I get "Failed - No file": enter image description here

But when I just get the file content with axios library and the exactly same url(axios.get('/someUrl')), I get a valid file stream with response headers:

HTTP/1.1 200 OK
X-Powered-By: Express
content-type: application/octet-stream
content-length: 317094
vary: Cookie
server: Werkzeug/1.0.1 Python/3.7.5
date: Sun, 27 Sep 2020 12:17:53 GMT
connection: keep-alive

What can be the source of the problem? And how can I debug the anchor tag download part?




Aucun commentaire:

Enregistrer un commentaire