ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,649
- Points
- 823
Reputation:
I'm trying to get an upload form to work but encountering some issues. First of all, here's my code so far in my Controller:
Code:
Read more
Continue reading...
Code:
Code:
public function actionUpload(ParameterBag $params)
{
$dataDir = \XF::app()->config('externalDataPath');
$upload = $this->request->getFile('upload', false, false);
$originalFileName = '';
if ($upload && strtolower($upload->getExtension()) === 'mp3')
{
$originalFileName = $upload->getFileName();
$targetDirectory = $dataDir ...
Read more
Continue reading...