XenForo
Administrative
- Thread starter
- Admin
- #1
My file upload code is working fine, first hurdle passed. Now onto the second one......
I'm uploading it in the
PHP:
Read more
ادامه مطلب...
I'm uploading it in the
data://
directory using the following code:PHP:
Code:
$uploads = $this->request->getFile('upload', false, false);
if($uploads)
{
$uploads->requireImage();
if (!$uploads->isValid($errors))
{
return $this->error($errors[0]);
}
$dataDir = \XF::app()->config('externalDataPath');
$datDir .= "://foo/bar/xyz.png"...
Read more
ادامه مطلب...