Inspect the authenticated response
Record status, Content-Type and the content disposition when supplied. Make sure a caller's generic filename override isn't masking the delivered type.
Verify the media itself
Open the full file in a media inspector and confirm the expected container and playable streams. Keep the download-private handling even when file naming is corrected.
Set the correct downstream name
Rename or transcode where needed for the receiving tool. A suffix change alone will not convert a real container format.
Pass condition
The saved name, decoded media and receiving editor agree on the actual delivered format.