quantumleaps
quantumleaps
FFilament
Created by quantumleaps on 11/12/2024 in #❓┊help
upload image from afterStateUpdate of another component
bump... if anyone knows how to
4 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
nvm, just removed the field, final code :
Forms\Components\FileUpload::make('product_ean_image_url')
->label('Product EAN Image')
->required()
->rule([
'mimes:jpg,jpeg,png,gif'
]),
Forms\Components\FileUpload::make('product_ean_image_url')
->label('Product EAN Image')
->required()
->rule([
'mimes:jpg,jpeg,png,gif'
]),
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
No description
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
i tried to look up if there's any way I can disable client side validation, and couldn't find it either
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
i think it probably has something to do with how filament checks for file type/mimes with accept values (maybe it doesn't split the string properly, as it wouldn't expect ; in attribute value)
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
No description
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
only option 1, no choice for option 2
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
you're right, it isn't mentioned anywhere in the docs, I found it in a stackoverflow solution. But it's the only way I found that gives both options
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
i think I didn't explain it properly there are 2 ways to upload an image 1) Pick from file manager 2) Click one from camera
<input type=“file” accept=“image/*;capture=camera”>
<input type=“file” accept=“image/*;capture=camera”>
Gives both option 1 & 2 if I use
<input type=“file” accept=“image/*" capture="environment”>
<input type=“file” accept=“image/*" capture="environment”>
Gives only option 2 I want both options
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
it is a separate attribute, and not part of accept in the documentation. But when I use it as a separate attribute, it only gives option to click a picture on mobile devices. when used as a part of accept as the way I did, it gives option to either choose an existing picture or click one with camera
23 replies
FFilament
Created by quantumleaps on 11/10/2024 in #❓┊help
disable or fix fileupload validation
bump
23 replies