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 Cee2w ago
Are you definitely uploading an image?
Risebille
RisebilleOP2w ago
yes png ive try with the same image on local and its succes
Jamie Cee
Jamie Cee2w ago
What are you using for your server?
Risebille
RisebilleOP2w ago
debian and nginx for the web server
Jamie Cee
Jamie Cee2w 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?
Risebille
RisebilleOP2w ago
I've checked all that and it seems to be correct.. but it still doesn't work to upload the image
Jamie Cee
Jamie Cee2w ago
Anything in developer tools when you press the upload button itself?
Risebille
RisebilleOP2w ago
nothing ....status 200
No description
Jamie Cee
Jamie Cee2w 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
Risebille
RisebilleOP2w ago
i don't have that file

Did you find this page helpful?