F
FilamentAdnan Yalahow

image not loading but accessible via URL

Hi am uploading an image and i also run php artisan storage:link and still image is not loading this is the error am getting
Solution:
There is your problem.
No description
T
toeknee45d ago
That tells you straight away. CORS Error, so you are loading from a different url to what your application is serving
AY
Adnan Yalahow45d ago
would you please provide any solutions
T
toeknee45d ago
Load the image over the same domain. Where do you get that error in filament or outside filament?
AY
Adnan Yalahow45d ago
I am confused but i think it's outside filament and here is what i did
Forms\Components\FileUpload::make('logo')
Forms\Components\FileUpload::make('logo')
nothing else and i run php artisan storage:link
T
toeknee45d ago
Well, you are either in filament or outside of filament. If the error occurs when uploading an image in a filament form... what is the domain with the error in that screenshot, what is your laravel app_url in the .env
AY
Adnan Yalahow45d ago
this is my app_url in the .env APP_URL=http://localhost:8000 and this is my actual url http://127.0.0.1:8000/settings/organization-details/1/edit
Solution
T
toeknee45d ago
There is your problem.
T
toeknee45d ago
Chang eyou APP_URL to http://127.0.0.1:8000
AY
Adnan Yalahow45d ago
oh now it''s working 😆 thank you very much
AY
Adnan Yalahow45d ago
one more hand please i want to show the actual image to the user instead of this gray placeholder
No description
T
toeknee45d ago
->preview()
Want results from more Discord servers?
Add your server
More Posts
hiddenOn returns an error when creating a resourceSo, on my app I had to add creation of whitelists. Before that you could only view the resource, yousave repeater values as json to DBhello i have a repeater which post the value as an array and when i try to insert data i got > `ArraHow close filament modal in custom page```php <x-filament::modal id='custom-modal-handle'> <x-slot name='header'>Tambah Nominal</x-slotBackgrounds plugin by SWISI try to use this plugin by SWIS https://filamentphp.com/plugins/swisnl-backgrounds#remember which iGroup By in tablePlease is it possible for the id to be starting from 1 in each groupingproblem with customized searchable text columnhttps://filamentphp.com/docs/2.x/tables/columns/getting-started#searching Does anyone know the corrSave relationship first before creating modelSo I need to save the relationship first then create a model and sync itCalculate Totals in the footer for a table componentHow can calculate the total balance of the customers and show it in the footer .Note this table compFilter using columnsHello, I'm having difficulty creating a filter in a query that I inserted in the columns. How can I Hiring a senior mobile app developer from India or PakistanI have some mobile projects. I want someone have over 3 years experience. And especially I hope reacGet current row record in custom action```php Tables\Actions\Action::make('make_additional_payment') ->label('Наплати дSelect multiple preloaded options are reordered after selecting the inputI have a select multiple that is formFilled with options already attached on a BelongsToMany relatioError on trying to edit or create a new role at SHIELD pluginIm getting ```count(): Argument #1 ($value) must be of type Countable|array, null given``` this errotesting repeater / fillForm / fill default itemHi - I'm just getting started writing tests for my app with Pest. My first and most high-traffic resUse fa-icon in table builderI'm working in a project who already have a database in production. The database have a table with aIs there a difference between these two `Auth::user()` vs `Filament::auth()->user()`?Is there anytime where using one or the other is beneficial?larazeus popover pop under table header/footerHello, having a problem, when i add a popover in a table, it's showing under the tablefooter/header.Laravel Breeze and filamentHi everyone, i use filament for the admin panel that is registered on /admin, then i have an api endSetting an input value from outside the repeater?I need to set some input's values from outside the repeater using afterStateUpdated but I can not geIs it possible to add custom variables for creating contracts in the Rich Editor?I need to create a contract template where variables such as names, addresses, and personal document