I have a laravel webapp running on Centos 7 vps, it have a form with file upload using Livewire.
Everytime after I select the file, it always return an error 500 (Internal Server Error).
and here is the error on UploadManager.js
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