Changes in `frappe.upload` in v12

I see that frappe.upload has changed in v12. I used to override that function on Item Doctype because we wanted to upload all of out photos in cloud storage, separate from ERPNext server.

Before dive in the code and take hours to find, do you know where this function has moved?

Thank You in advance!