4

Is there a way to select multiple attachments on a Trello card and download them all together? (Rather than one at a time.)

2

Unfortunately it's not possible to download multiple attachments at once. You can only download Trello Card attachments one at a time. If you're just trying to get all the data, you can try exporting your Trello Board data.

| improve this answer | |
2

In case you have Python available, I used the following script for myself:

import json
import requests

with open('trello.json') as f:
    data = json.load(f)

for action in data['actions']:
    if not 'attachment' in action['data']:
        continue
    if not 'url' in action['data']['attachment']:
        print action['data']['attachment']
        continue
    url = action['data']['attachment']['url']
    name = action['data']['attachment']['name']
    print name
    r = requests.get(url)
    with open(name, 'wb') as f:
        for chunk in r:
            f.write(chunk)
| improve this answer | |
  • Note (for python agnostics like myself): run this with python v2, v3 does not seem to work. – panepeter Nov 18 '19 at 10:56
1

You can't do that in Trello no, but if you get a browser plugin such has this for Chrome

Image Downloader

You can then just open the card and hit the plugins button, then select all of the images you wish to download. Much faster than doing it individually.

| improve this answer | |
  • Good extension! +1 – Erick Filho Jan 5 '15 at 15:45
1

Here's a way to download all the attachments for one Trello card using JavaScript.

Open the card in Trello and then run the following in your browser inspector console:

// Clicks the "View all attachments" if there are more than four attachments
[...document.getElementsByClassName("js-view-all-attachments")][0].click();

// Parses for all the attachment direct download links 
var a = [...document.getElementsByClassName("js-attachment-list")][0];
var links = [...a.children].map((el) => el.firstElementChild.href);

// Prints all the attachment links on separate lines
console.log(links.join("\n"));

// example output 
// https://trello-attachments..file1.png 
// https://trello-attachments..file2.pdf
// https://trello-attachments..file3.txt

From there you can use wget on command line to download all the files.

// Prints out the command to download all the links
console.log("wget " + links.join(" "));

// e.g. wget https://trello-attachments..file1.png https://trello-attachments..file2.pdf https://trello-attachments..file3.txt
| improve this answer | |
-1

I've had this issue and made a quick tool to help with this, happy to share:

https://bendellar.com/trello_attachment_downloader/

It allows you to paste the JSON export from either a card or the whole board and will create a zip archive of all the files together.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.