$type = $query->uploadInfo($filename)->{'Content-Type'};