Hello Guys,
i am new to kirby and i am working on an Contactform for Jobapplications on my Companys Website. I used the Plugin Phpmailer to send the Mails and this is working fine. The thing is in the moment, that i want to send also an attachment which the user uploads over the form.
this is the input:
<input name="myFile" type="file" required>
i know i have to upload the file, but thats the thing i have problems with. i know that kirby has an upload class, but this thing doenst worked for me. Had anyone the same problems or knows an other way to upload files ?
$upload = new Upload(__DIR__ . DS . 'uploads' . DS . '{safeFilename}', array(
'input' => 'myFile',
'overwrite' => true
));