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

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