[HttpFoundation] moved file hash calculation to own method
[HttpFoundation] inject file path as argument