The question is, why isn’t it working for you, and what are you getting if you’re not getting the right thing.
Try outputting the content of $file after you get it and see what’s being returned
$file = get_sub_field('document_upload');
var_dump($file);