Based on Next.js server actions, the sendToFrontAction()
can be called from client-side components.
It passed a couple of data items to the importFrontMessage()
method which reads a file from the local system, and adds it to a draft message.
The message is submitted to the Front Create Draft Message endpoint.
This is an example of that the imported draft might look like given the code provided below: