Answer the question
In order to leave comments, you need to log in
How to make automatic unloading of information (address from where downloaded and name) about downloaded files?
I download files, for example, from one site. Is there a way to create a report, some file with information about the downloaded files. You need the following: 1. Direct link (from where the file was downloaded). 2. File name . And that's it.
Maybe there is some extension or ready-made solution. Or somehow it can be done.
I'm sure it's real, but I don't know how.
Here.
Answer the question
In order to leave comments, you need to log in
Install the Download Master browser plugin.
Allow intercepting download links.
In the DM settings, specify "Create a separate description file for each download *.txt".
Just. Ready is unlikely to be, because. specifically.
call chrome.downloads.search , something like this:
chrome.downloads.search({state:'complete'}, function(res) {
for(let i= 0; i < res.length; i++) {
//res[i].finalUrl - ссылка на файл
//res[i].filename - путь сохраненного файла в ОС
//.... что-то куда-то пишем .... например в переменную.
}
//Куда-то выгружаем, например в буфер обмена.
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question