Sep 20, 2018 05:27 AM
Hello,
I’m trying to create a new record with the API. One field type is an attachment (an image or pdf).
My call is working, I have a 200 response code, I can see the new record in the Airtable interface, I also have in the response the attachment field information:
["Proof"]=> array(1) { [0]=> object(stdClass)#28 (3) { ["id"]=> string(17) "attOL0Pzidc5P8bOk" ["url"]=> string(85) "https://www.mydomain.com/file/26348dd2d0adb1f592fdf34774a51214.jpg" ["filename"]=> string(36) "myfile.jpg" } }
but in the Airtable interface this field is empty, and if I get this new record, I don’t have this field. The file is first uploaded on my server, I can access the file in my browser using the URL.
In the documentation, it’s indicated that Airtable will download the file at the given URL and keep its own copy of it. I presume it’s not working?
Do you have an idea where the problem is?
Thank you
Sep 20, 2018 06:19 AM
I tried with a public image from my website and it works https://www.toornament.com/disciplines/dota2/img/cover-225x300-medium.jpg but it doesn’t work with the image from my FTP (where files are also available with an URL) https://lab.toornament.com/grosse-ligue/files/test.jpg
Sep 20, 2018 08:34 AM
It was an SSL certificate problem. It’s now fixed with an update of the certificate!