check quota when trying to download a file via new -> web

backport of #10290, fixes #10047 for stable6, also requires the 'freeSpace' in the result of buildFileStorageStatistics()

cc @icewind1991 @DeepDiver1975 @bantu @karlitschek @ser72