Hello,

is possible remove this attribute?
I don't know why is here and I can't remove it by admin (?).
On mobile devices I can't select image from gallery, only camera is allowed, thanks this attribute.

Here is my patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

landsman created an issue. See original summary.

landsman’s picture

Title: Remove default capture from file input » Remove default capture attribute from file input
jrockowitz’s picture

Status: Active » Needs review
FileSize
736 bytes

I agree the capture attribute should not be added by default. Someone can manually add it, if they really need it.

https://stackoverflow.com/questions/21523544/html-file-input-control-wit...

I am re-uploading the patch and settings the status to 'Needs review' to trigger the automated tests.

Status: Needs review » Needs work

The last submitted patch, 3: remove-capture.patch, failed testing.

jrockowitz’s picture

Status: Needs work » Needs review
FileSize
591 bytes
jrockowitz’s picture

The last submitted patch, 5: remove_default_capture-2881048-5.patch, failed testing.

landsman’s picture

Thank you @jrockowitz. Do you think that this can be merged to master release please?

  • jrockowitz committed 2f20d72 on 8.x-5.x
    Issue #2881048 by jrockowitz, landsman: Remove default capture attribute...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.