disable or fix fileupload validation

I need the accept attribute to be
image/*;capture=camera
since it's the only attribute combination that gives mobile devices an option to either click a photo, or choose one from files/documents (which is exactly what I need). But when I do that, I can't upload any images as it gives me error : file of invalid type. How can I fix this?

code:
                             Forms\Components\FileUpload::make('product_ean_image_url')
                    ->label('Product EAN Image')
                    ->extraInputAttributes(['accept' => 'image/*; capture=camera'])
image.png
Solution
Yes, I understood.

capture="environment" says: Use the camera. So you only get camera option.

<input type=“file” accept=“image/*;capture=camera”>

Is an invalid accept value and an empty capture.

So just omit capture?
Was this page helpful?