Question
Is it possible to send files saved in the panel (not yet in the table) via email?
Button action code in the panel:
=: emailSend(to: "some@email.com"; title: "*"; body: "test"; files: #pnl.test_file)
but it gives an error
Answer
The contents of pnl.file
for a loaded but not saved file contain technical information:
[
{
"name": "test2 (1).txt",
"size": 19,
"type": "text/plain",
"tmpfile": "totum-copy.1.MoYPbY"
}
]
Instead of file, a tmpfile with a temporary object where the file is stored is specified. Therefore, sending an email without saving is not possible. Use a temporary table instead of the panel.