oops: Fix several issues for files and downloads