Many organization that run their own Wikibase cannot use commons as media repository, because of certain restrictions on licenses, content, and ownership. Media files can be uploaded to Wikibase instances, but at the moment, Wikibase can only reference media via the data type Commons Media File, which is restricted to items hosted on Wikimedia Commons.
As a Wikibase administrator I would like to enable referencing local media files for a Wikibase instance, so media files can be part of the ontology.
GIVEN I am on Special:NewProperty
WHEN I create a new property
THEN I am able to select a 'local media file' as data type
GIVEN I am on a entity page
WHEN I create a statement
AND the data type of the selected property is 'local media file'
THEN I can search for a media file from the local media repository
AND save it as data value.
GIVEN I have an item with a statement with a property 'local media file'
WHEN I create the RDF export of the item
THEN the URL to the file in the local media repository is rendered in the RDF
GIVEN I am on a entity page of an item with a statement with a property 'local media file'
WHEN I scroll to the statement in the UI
THEN I see a linked thumbnail of the file in the local media repository