Answers for "get file from url and get type"

2

javascript get filename from url

var filename = url.split('/').pop();
Posted by: Guest on February-14-2021
1

js get file content from url

// create a variable called content containing the content from https://URL/file
fetch("https://URL/file").then((r)=>{r.text().then((d)=>{let CONTENT = d})})
Posted by: Guest on October-30-2020

Code answers related to "get file from url and get type"

Code answers related to "Javascript"

Browse Popular Code Answers by Language