grantus
Guest
Member
I have this code:
Code:
Code:
but for some reason file_exists isn't working. Deleting the file is fine, and I've checked all the paths, so I'm assuming there's a problem with file_exists checking inside the data folder? Any...
Read more
Continue reading...
Code:
Code:
Code:
$dataDir = \XF::app()->config('externalDataPath');
$fileDirectory = $dataDir. '://ill/upload/';
$filename = $signupUsername.'_'.$signupFilename.'.mp3';
if (file_exists($fileDirectory.$filename)) {
\XF\Util\File::deleteFromAbstractedPath($fileDirectory.$filename);
}
Read more
Continue reading...