See comment here https://github.com/ral-facilities/object-storage-api/pull/12#discussion_r1781229727. There may be a better way to distinguish image upload from attachments in terms of where the data is uploaded.