External onchange handler for media upload.