Don’t allow upload of duplicate mediafiles

Bug: 64831

Change-Id: Ie50f5167fb62fba7f03c88106f96a28e4e71c846