File download with reactjs doesn't work correctly (using axios)
问题 I'm implementing a youtube video downloader using ytdl-core with Nodejs backend and Reactjs frontend. However, using ytdl-core library I'm able to send to youtube video file to frontend with this codeblock app.get('/download', (req, res) => { let { url, itag } = req.query; let id = ytdl.getURLVideoID(url); ytdl.getInfo(id, (err, info) => { if (err) { console.log(err); throw err; } else{ let audioandvideo = ytdl.filterFormats(info.formats, 'audioandvideo'); let video = audioandvideo.filter(obj