Cloudinary FileUpload Integration
I'm new in Filament, either in Laravel. I want to integrate FileUpload component with Cloudinary. I want user can upload image on the component, and its gonna store on database.
I'm using this package of Cloudinary Laravel:
https://github.com/cloudinary-community/cloudinary-laravel
My form schema is
and have this function on model
and when I run it, it's got on console, and on terminal
Is there any mistake? I'm very confused. Or maybe anyone have some article/video about this?
Thanks
GitHub
GitHub - cloudinary-community/cloudinary-laravel: Laravel SDK for C...
Laravel SDK for Cloudinary. Contribute to cloudinary-community/cloudinary-laravel development by creating an account on GitHub.
7 Replies
Why are you overriding the store method. The cloudinary disk should work as is. Just like an s3 disk.
Did you define the cloudinary disk in the filesystem config file?
Yes I define the cloudinary disk
I do delete the overriding store method but the error persists in the browser console and the terminal.
What do you think is going wrong?
Without being able to track it, hard to say. But it should just be a matter of using ->disk(‘cloudinary’) on your FileUpload form fields.
Would be surprised if it matters but for s3 it also needs ->visibilty(‘private’). So maybe that’s needed for cloudinary too, but I don’t see why it would.
I'm also confused as to where track the mistake is. The browser console always got error.
If I add ->visibility('private (or public)') the error persists.
On the readme of the package, it should use but I'm not sure how to implement this into FileUpload form fields.
This sounds like a server issue where it’s trying to serve livewire.js as a static assest instead of serving it through php.
I'm still using local server btw. Do you know how to solve it?
Without seeing the code base I don’t. Sorry.