#Issue in Media Library Plugin at the time of upload image
29 messages · Page 1 of 1 (latest)
check the logs in your laravel.log and also check the network response for it to debug it more.
Most of the times for me it was a permission issue.
there is a 401 error, the problem occurs when switching to the octane server
i run this project as a local
@north venture Can you also share the console.log messages?
You might be missing the default structure of files in the storage folder
->storage
->app
->public
in my filesystem config file this path set
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
], but it cannot fix the error
Check the files in your project,
error change and this error show please tell me how to fix this issue
Can you verify if there are any temporary files inside the livewire-tmp that you uploaded?
what about the console logs?
thats the main issue no file uploaded in temporary directory because of issue as you see in image
add this to create page:
public function mount(): void
{
dump(tmpfile());
parent::mount();
}
what is the output?
stream resource @34 ▼ // app/Filament/Pages/UploadChallan.php:58
timed_out: false
blocked: true
eof: false
wrapper_type: "plainfile"
stream_type: "STDIO"
mode: "r+b"
unread_bytes: 0
seekable: true
uri: "/tmp/phpptHVgu"
options: []
}
this output show
share the FileUpload component code in your form schema
Is it a custom page?
SpatieMediaLibraryFileUpload::make('media')
->required()
->collection(User::MEDIA_COLLECTION)
->model($this->user)
yes
if you use this, what happens when you upload a file?
FileUpload::make('media')
->required()
->model($this->user)
nothing any affect
try to config trusted proxies