curl -v http://example.com -H "Host: attack.ink"
> GET / HTTP/1.1
> Host: attack.ink
> User-Agent: curl/7.58.0
> Accept: */*
Note: Multer will not append any file extension for you, your function should return a filename complete with an file extension.