Made it possible to pass a Dossier for the receiveFile-methods.