Hello!
I want to upload an excel file (.xlsx) into a card as an attachment. However, if I open the card, I can only download an attachment with the type application/octet-stream. How can I upload the file so that a card user (not necessarily me) can see the contents of the excel file?
I wrote the following code:
import requests
key = "cf96243c3494a8473e5caccd2d0f906c"
token = "c1b7ca7996e4cf4f007c014b4acf7451613af6207bb5d98ce41be50a1aed5a27"
query = {
'key': key,
'token': token,
'file': '10228-PA.xlsx',
'name': '10228-PA.xlsx'
response = requests.request(
"POST",
url = "".join(("https://api.trello.com/1/cards/", 'NU6mdURG', "/attachments")),
params=query
)
Any info on how to upload excel files as attachments via python code?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.