You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR "detail": "League\\Flysystem\\Filesystem::has(): Argument #1 ($location) must be of type string, null given, called in /home/syofyan/dreamworld/project/pmo-9/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php on line 159", #57
"detail": "League\\Flysystem\\Filesystem::has(): Argument #1 ($location) must be of type string, null given, called in /home/syofyan/dreamworld/project/pmo-9/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php on line 159",
Its error on this line:
private function deleteUploadedFile($filePath)
{
if ($this->getStorageDisk()->exists($filePath)) {
$this->getStorageDisk()->delete($filePath);
}
}
to this line:
// delete old file
if ($currentFile != $filePath) {
$this->deleteImage($currentFile);
}