F
FilamentSourabh

File upload preview green gradient

How do I remove the green gradient so that I can see the whole logo while uploading it ?
<?php

Forms\Components\FileUpload::make('logo')
->rules([
'image', // Must be an image file
'mimes:jpeg,png,jpg', // Allowed file extensions
'max:2048', // Maximum file size in kilobytes (adjust as needed)
])
->disk('company_logo') // from filesystems.php
->helperText('Recommended size 300px wide. Maximum file size 2mb. Allowed file type png, jpg, jpeg.')
->maxFiles(1),
<?php

Forms\Components\FileUpload::make('logo')
->rules([
'image', // Must be an image file
'mimes:jpeg,png,jpg', // Allowed file extensions
'max:2048', // Maximum file size in kilobytes (adjust as needed)
])
->disk('company_logo') // from filesystems.php
->helperText('Recommended size 300px wide. Maximum file size 2mb. Allowed file type png, jpg, jpeg.')
->maxFiles(1),
Solution:
the file uploader uses Filepond, so you can check the classes and overwrite them in css
No description
Solution
LZ
Lara Zeus16d ago
the file uploader uses Filepond, so you can check the classes and overwrite them in css
S
Sourabh16d ago
Can you please tell me at which file I have to write override CSS code? For the attached screen shot. I have checked the document and follow the step but found no change . https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
S
Sourabh16d ago
No description
LZ
Lara Zeus16d ago
not a file the css classes, try to use the dev tools to find out the class that give the green color and change it in your theme css file, the one that generated by the command
S
Sourabh16d ago
yes i am writing code in the theme.css file which is generated by the command . php artisan make:filament-theme and after adding css in the theme.css i also run (npm run build) command. but no change found .
No description
LZ
Lara Zeus16d ago
try the -success` one! that green for success, and it will be red for failure uploads
S
Sourabh15d ago
Thanks, its done at my side after hard refresh and view clear (php artisan view:clear)
Want results from more Discord servers?
Add your server
More Posts
Export to Excel - sub folder does not get url correctly.My app referer to the sub directy as : domain.com/demo/meterbill -> link to public folder in LaravelHow I can create Form or Table in another classF.E I want to create another class with form or tableUpdate each repeater field 2 fields outside the repeaterI'm playing around with creating a invoice in Filament and I've created a form that has multiple fieCan't access User profile "isSimple:false" on Team tenantHi. Trying to get to User's profile (http://app.test/dashboard/profile) This works public functHow to handle API error response?I have a resource, once you have create/update/delete action, it will call an API endpoint. How can Select Filter List TruncatedHi Guys, I have a select filter which has more then 50 options, however the list has been truncated Column relationships problemHey ! In a relation manager resource, i have this code : ```public function table(Table $table): custom themeHello, when I create a custom theme (php artisan make:filament-theme) and configure my vite.js fToggle-columnIs there any way to make toggle-column from scratch on a custom page ?$getAction() and visibilityWhen using ->registerActions() on a Form or Infolist component, it seems that visible() and hidden()Modal action or table inside formMy use case is a CRM application where each resource only has an edit screen. A list of related resoCustomizing Data Insertion with Filament's Import ActionHello, Regarding the import: https://filamentphp.com/docs/3.x/actions/prebuilt-actions/import Is iCount SaleItems sold by Product IDHello, I have a Sales Resource with (hasMany) SaleItems Resource which selects a product to sell froMissing required parameter for View routeI have just found out the wonder of Repeaters, and after adding one to a form, the first time I submDownloadable() and Openable() gives me 404 errorhello! I am currently creating our system and the downloadable() and openable() syntax in my filamenhow to add external url in navigationi want to add external url in my navigation sidebar. but i find a way for a specific resource. whatcustom themeHas anyone used Multi-Tenancy with diferent DB Sqlite???Livewire View Not foundI have a brand new install of Laravel 11, Filament 3 and Livewire 3. I have been configuring the adBumped from 3 to 3.2 and getting Leage\Csv\Writer not found```/vendor/filament/actions/src/Exports/Jobs/PrepareCsvExport.php:53 Leage\Csv\Writer not found ``` Using TailwindHi I have a project where I'm using Tailwind. I have a related resouce, which I want to highlught