<?php
$id=$_GET['id']??'';
$m="uploads/$id.json";
if(!file_exists($m)) die('Not found');
$j=json_decode(file_get_contents($m),true);
header('Content-Disposition: attachment; filename="'.$j['filename'].'"');
readfile("uploads/$id.bin");
