Adapt to various attachment interfaces
Adapt to various attachment interfaces

Fixes corehq.apps.reports.tests.test_form_export:FormMultimediaExportTest.test_extract_form_attachment_info
qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq