In WiFi settings there is option to connect the phone with other WiFi direct devices and connects also..
In files the options in sharing section
Share via WiFi Direct is missing
How to enable or leave a OTA soon regards
After you have connected two devices via WiFi direct, you need a third party app that supports the protocol to share files. It's not built in into android by default. Since we're running close to stock android, we do not have this and this is why you need a third party app.
I use send anywhere app, it auto find the best way to send file (via workgroup, wifi direct....) Free app to use or $5 to remove ad and help out dev.