Issue #2203831 by fabianderijk: Fixed downloaded filename should be the $file->uri basename and not $file->filename.