How do I bulk upload attachments to existing records?

As the thread title says
How do I bulk upload attachments to existing records?
From the image, it’ll become obvious what I’m trying to do.

Also I know php and ruby so I can just use its associated Unirest libraries for interfacing with API’s (it also supports other languages).

Hi,

Have you tried using mass file upload?