Laravel Livewire failed to upload file on vps server - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Tuesday, March 1, 2022

Laravel Livewire failed to upload file on vps server

I have a laravel webapp running on Centos 7 vps, it have a form with file upload using Livewire.

enter image description here

Everytime after I select the file, it always return an error 500 (Internal Server Error).enter image description here

and here is the error on UploadManager.js enter image description here

all folder in server I set to 0777, it should be writable. i'm using cpanel in vps to upload laravel project.

here is in my blade.php file

<form wire:submit.prevent="submit" enctype="multipart/form-data" method="POST" >
...
<div class="form-group required">
            <label for="fl_ktp" class="control-label">Upload KTP: (max. 3 MB)</label>
            <input type="file" class="form-control " wire:model="fl_ktp">
            @error('fl_ktp') <div class="invalid-feedback"></div> @enderror
        </div>
...
</form>

can you guys help me, is there something I missed to configure? because it's running well on my local.



source https://stackoverflow.com/questions/71299421/laravel-livewire-failed-to-upload-file-on-vps-server

No comments:

Post a Comment