File Upload Form In Server

I have tested it on my local server and it works but when I deploy it to my server it doesn't work Here is the code Forms\Components\FileUpload::make('profile_photo_path') ->label('Profile Photo') ->image() ->avatar() ->disk('public') ->columnSpanFull() ->extraAttributes(['class' => 'mx-auto text-center']),
No description
10 Replies
Jamie Cee
Jamie Cee3mo ago
Are you definitely uploading an image?
MC 26 - Mohammad Rafli S
yes png ive try with the same image on local and its succes
Jamie Cee
Jamie Cee3mo ago
What are you using for your server?
MC 26 - Mohammad Rafli S
debian and nginx for the web server
Jamie Cee
Jamie Cee3mo ago
Have you ran artisan storage:link, given the storage file permissions, have enough space to upload i.e. upload_max_filesize etc. I once had an issue requiring imagemagick, not sure if that may be needed?
MC 26 - Mohammad Rafli S
I've checked all that and it seems to be correct.. but it still doesn't work to upload the image
Jamie Cee
Jamie Cee3mo ago
Anything in developer tools when you press the upload button itself?
MC 26 - Mohammad Rafli S
nothing ....status 200
No description
Jamie Cee
Jamie Cee3mo ago
do you have a livewire.php config, is there any validation in there that might be restricting it? If not, Im a bit last im afraid
MC 26 - Mohammad Rafli S
i don't have that file

Did you find this page helpful?