Uploading Image File via API?

Quick Question,

Is it possible to upload image file via Rails API ?

This is the scenario, our ruby on rails app’s API got accessed by PHP
app, this PHP app inserts new data, but I’m wondering if Rails API can
provide a way so that this PHP app can upload image file.