Amazon S3 console: download multiple files at once

后端 未结 15 1491
傲寒
傲寒 2021-01-31 07:00

When I log to my S3 console I am unable to download multiple selected files (the WebUI allows downloads only when one file is selected):

https://console

15条回答
  •  误落风尘
    2021-01-31 07:33

    In my case Aur's didn't work and if you're looking for a quick solution to download all files in a folder just using the browser, you can try entering this snippet in your dev console:

    (function() {
        const rows = Array.from(document.querySelectorAll('.fix-width-table tbody tr'));
        const downloadButton = document.querySelector('[data-e2e-id="button-download"]');
        const timeBetweenClicks = 500;
    
        function downloadFiles(remaining) {
            if (!remaining.length) {
                return
            }
    
            const row = remaining[0];
            row.click();
            downloadButton.click();
    
            setTimeout(() => {
                downloadFiles(remaining.slice(1));
            }, timeBetweenClicks)
        }
    
        downloadFiles(rows)
    }())
    

提交回复
热议问题