I have this and am trying to contain the file in my variable like so:
Code: Select all
$file_upload = $request->variable( 'my_uploaded_file', [], true, 'FILES' );
How do I get access to the file I've uploaded? I'm sure this is simple but I'm completely stumped here.
edit:
I've double checked my form tags and I believe my HTML is correct too. I'm not missing the
enctype
.Code: Select all
<form action="{{ U_ACTION }}" method="post" enctype="multipart/form-data">