0

I want to change the name that appears in the url when it is created, because it is not legible or identifying

const file = new File([blob],"name.pdf", { type:"application/pdf" });
const url = window.URL.createObjectURL(file);
window.open(url, "_blank")

The url created is: "blob:http://localhost:8081/c4ba621c-d314-42b4-9a8f-a4e87161f4d0", but I need it in this format: "blob:http://localhost:8081/<"object's name">"

mousetail
  • 7,009
  • 4
  • 25
  • 45

0 Answers0