Bugfix: correct file download validation