Code to implement setting of UUIDs on media upload