[Hook request] Make the input:file required
-
Hello,
I need to make the front input:file field required to avoid too quick submission by the users.
In init.php I did something like that, waiting for your approval for this hook request. Line 332.
$required = apply_filters( 'bua_is_input_file_required', false ) ? ' required' : ''; echo '<p><input type="file" name="basic-user-avatar" id="basic-local-avatar"' . $required . ' /></p>';
I think you should allow custom attributes here to improve your code, like the capture attribute and accept attribute.
https://www.w3.org/TR/html-media-capture/Thank you ??
- The topic ‘[Hook request] Make the input:file required’ is closed to new replies.