FooSoft / anki-connect

Anki plugin to expose a remote API for creating flash cards.
https://foosoft.net/projects/anki-connect/
Other
1.94k stars 219 forks source link

syntax to provide array of attachment names/urls into the json model #331

Open LootenPlunder opened 2 years ago

LootenPlunder commented 2 years ago

If an attachment field has multiple objects Airtable will separate items with commas. and the model outlined in the docs will put the links and names in a string in the attachments field in Anki with an error:

https://airtable-blocks-web-clipper-production.s3.amazonaws.com/screenshots/appPGi59M3nuXkRuG/bli8ThEEZZJ4mTspC/f716ac652cc08d8be6d4a6e8f0516891?AWSAccessKeyId=AKIAR7KB7OYSKTGL7SCL&Expires=1654045983&Signature=9tjMcGlVN7fUwG0rbdhG2Pv9DvE%3D,https://airtable-blocks-web-clipper-production.s3.amazonaws.com/screenshots/appPGi59M3nuXkRuG/bli8ThEEZZJ4mTspC/a0d7d02a658c2c7b6572c9ffc9fd03e8?AWSAccessKeyId=AKIAR7KB7OYSKTGL7SCL&Expires=1654045983&Signature=9tZDaiQx7PF7IfCnTAiOU1b01so%3D download failed with return code 403

I imagine the image names/urls could be brought into to the script/automation in airtable as an array, then passed into the pictures parameter, but what is the specific syntax for it?