#Issue in Media Library Plugin at the time of upload image

29 messages · Page 1 of 1 (latest)

north venture
#

When i upload image or any file it give the error

opal gladeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sly forge
#

check the logs in your laravel.log and also check the network response for it to debug it more.

vocal kestrel
#

Most of the times for me it was a permission issue.

quaint fog
north venture
#

i run this project as a local

quaint fog
#

@north venture Can you also share the console.log messages?

north venture
pastel forum
#

You might be missing the default structure of files in the storage folder
->storage
->app
->public

north venture
#

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

pastel forum
#

Check the files in your project,

north venture
#

error change and this error show please tell me how to fix this issue

quaint fog
#

Can you verify if there are any temporary files inside the livewire-tmp that you uploaded?

pastel forum
#

what about the console logs?

north venture
#

thats the main issue no file uploaded in temporary directory because of issue as you see in image

hasty marsh
north venture
#

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

hasty marsh
#

Is it a custom page?

north venture
#

SpatieMediaLibraryFileUpload::make('media')
->required()
->collection(User::MEDIA_COLLECTION)
->model($this->user)

#

yes

hasty marsh
#

share the whole code please

#

you can use github gist

north venture
hasty marsh
# north venture

if you use this, what happens when you upload a file?

FileUpload::make('media')
    ->required()
    ->model($this->user)
hasty marsh
north venture
#

its not working and i more thing the issue face in live server in ubuntu with nginx

#

i face issue in local but it can solve just given temporary path in .phpini file but in local i face path issue and it resolved but in live server issue change and it cannot solve