Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

PDF Binary Data file attachment turns to unknown file in card Edited

Good day,

I have this problem in the Trello api "add attachment" via binary data. It seems that when the binary data is being pass to the card it changes to an unknown file.

I am using a function that will convert HTML to PDF and use its Binary Data output to pass to the request. I already tested it if the file is downloadable in local and it has no problem so far.

Capture.PNG

This is the structure of the request that I am using.Capture2.PNGCapture3.PNG

2 answers

1 vote
Iain Dooley Community Leader Apr 14, 2020

@tricks_12143 yeah I've never been able to get actual file uploading to work. I have only been able to make link attachments work. In some cases where I need a "file not a link" I've resorted to using the Google Drive API to save the file then linking to it from there. @Bentley Cook might know more

@Iain Dooley thanks for the reply, I might consider that method. I've been struggling on this the whole day.

0 votes
bentley Atlassian Team Jun 16, 2020

For reference, I made this Glitch project to demonstrate ways to use the attachments API https://glitch.com/edit/#!/trello-attachments-api?path=README.md%3A1%3A0

Briefly looking at it again leads me to believe that there isn't a way to upload a PDF as Binary Data and have it attach as a .pdf to the card. The API does something a bit wonky and won't hold onto the filtetype as you'd expect.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

📹 What is Trello?

Hello Community!  My name is Brittany Joiner and I am a Trello enthusiast and Atlassian Community Leader. I'll be sharing with you a series of videos with my top tips on how to best use Trello...

752 views 13 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you