Backup restore failing due to .tar versus .tar.gz file extension

I’m facing the same issue and tried this. The file uploads fine, but restoration can’t find the DB dump:

[2025-01-23 18:39:45] EXCEPTION: No such file or directory @ rb_check_realpath_internal - /var/www/discourse/tmp/restores/default/2025-01-23-183945/dump.sql.gz

Any suggestions? Thanks