HomePhabricator

[FIX] APISite.upload: Expect a dict not a list

Description

[FIX] APISite.upload: Expect a dict not a list

The imageinfo returned via query+imageinfo is a list while the imageinfo
returned via upload is just a dict. Since 31cd9fdc it assumed it returned
actually a list of dicts and thus failed when FileInfo tried to create itself
from a part of the dict.

Bug: T100627
Change-Id: I0a31451fee3ac342a748c6b03fea9e9853cefd7f

Details