lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Feat]: Add optional 'capture' attribute to file upload component

Open martkaczmarek opened this issue 1 year ago • 0 comments
trafficstars

When creating file upload component, we can specify what types of files we accept (accept attribute). HTML also has a capture attribute, which tells the mobile browser to capture a picture from a camera (specific camera can be defined as the arrtibute's value). It would be very useful in the mobile browser use-cases, since sometimes we want the user to take a picture and send it instead of making them browse the files to upload.

Describe the solution you'd like I propose adding either a tick or text input (or both) in the Advanced section of file upload, something like that: image In this instance attribute should not be attached to input at all if the text field is empty.

Describe alternatives you've considered An alternative would be to create a separate component dedicated for capturing new files, but I feel like it's not needed. Other way could also be to allow adding any custom attribute in input fields: image

Additional context Add any other context or screenshots about the feature request here.

martkaczmarek avatar Jun 12 '24 14:06 martkaczmarek