image upload failed

when i try to upload an image iget this error on laravel.log [2025-09-17 12:44:12] local.ERROR: Path must not be empty {"userId":6,"exception":"[object] (ValueError(code: 0): Path must not be empty at C:\laragon\www\kithspace\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemAdapter.php:466) [stacktrace] #0 C:\laragon\www\kithspace\vendor\laravel\framework\src\Illuminate\Filesystem\FilesystemAdapter.php(466): fopen('', 'r') #1 C:\laragon\www\kithspace\vendor\laravel\framework\src\Illuminate\Http\UploadedFile.php(94): Illuminate\Filesystem\FilesystemAdapter->putFileAs('/livewire-tmp', Object(Illuminate\Http\UploadedFile), 'ZwmhgbHAZQ1JrLK...', Array) #2 C:\laragon\www\kithspace\vendor\livewire\livewire\src\Features\SupportFileUploads\FileUploadController.php(42): Illuminate\Http\UploadedFile->storeAs('/livewire-tmp', 'ZwmhgbHAZQ1JrLK...', Array)
No description
2 Replies
Oscar Carvajal Mora
Can you check your Laravel/Filament path settings? You can guide yourself by following this. Did you ran the command to create the symbolic link? php artisan storage:link. Without any context, I can only assume a few things
Soufian
SoufianOP3w ago
Yes i have a symbolic link for storage also here is my filesystem.php config
'disks' => [

'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'serve' => true,
'throw' => false,
'report' => false,
],

'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
....
'disks' => [

'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'serve' => true,
'throw' => false,
'report' => false,
],

'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
],
....

Did you find this page helpful?