Category : filepond

so I’m using spatie media library and I can upload image to storage and database. And my problem is I can’t display image from storage with inertia. This is my Controller. public function showHotelPhoto($id) { $hotels = Hotel::with(‘media’)->get(); return Inertia::render(‘AdminHotelPhoto’, [ ‘data’ => $hotels, ]); } if I’m using blade, I can get the image ..

Read more

I’m using filepond to upload my files to the server using Laravel filepond Backend package. However, while uploading files using Filepond Asynchronously using XMLHttpRequest. I noticed the following error pops up in the console. Getting 422 (unprocessable entity) Error in console. Below is my configuration: FilePond.registerPlugin( FilePondPluginFileEncode ); FilePond.create(document.querySelector(‘input[type=”file”]’)); FilePond.setOptions({ server: { url: ‘/filepond/api’, process: ..

Read more

I’m using filepond to upload my files to the server using Laravel filepond Backend package. Filepond upload files Asynchronously using XMLHttpRequest. Getting 422 (unprocessable entity) Error in console. Below is my configuration: FilePond.registerPlugin( FilePondPluginFileEncode ); FilePond.create(document.querySelector(‘input[type=”file”]’)); FilePond.setOptions({ server: { url: ‘/filepond/api’, process: ‘/process’, revert: ‘/process’, headers: { ‘X-CSRF-TOKEN’: $(‘meta[name=”csrf-token”]’).attr(‘content’) } } }); FilePond.parse(document.body); <html lang=”en”> ..

Read more

I have Laravel app so I need to upload image for category, I use the FilePond library When I upload image in in front-end everything is fine with the library but when make dd() for my request I got this array: array:5 [▼ “_token” => “KyEk4ha6UbMSG0WfYjD84wcUZU188pv1OK5utwrt” “name” => “d” “category_news_id” => “6” “desc” => “f” ..

Read more