Input html field accept attribute
-
For better UX the accept attribute for the input field should be populated, e.g.
plugins\dco-comment-attachment\includes\class-dco-ca.php:168$name = $this->get_upload_field_name(); $multiple = ''; $exts = '.' . implode(', .', $this->get_option( 'allowed_file_types' )); if ( $this->get_option( 'enable_multiple_upload' ) ) { $name .= '[]'; $multiple = ' multiple'; } ?> <input class="comment-form-attachment__input" id="attachment" accept="<?php echo $exts; ?>" name="<?php echo esc_attr( $name ); ?>" type="file"<?php echo esc_attr( $multiple ); ?> />
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Input html field accept attribute’ is closed to new replies.