Title: Input html field accept attribute
Last modified: September 30, 2021

---

# Input html field accept attribute

 *  Resolved [pranciskus](https://wordpress.org/support/users/pranciskus/)
 * (@pranciskus)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/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 ); ?> />
       ```
   
    -  This topic was modified 4 years, 8 months ago by [pranciskus](https://wordpress.org/support/users/pranciskus/).
    -  This topic was modified 4 years, 8 months ago by [pranciskus](https://wordpress.org/support/users/pranciskus/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Denis Yanchevskiy](https://wordpress.org/support/users/denisco/)
 * (@denisco)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/input-html-field-accept-attribute/#post-14954407)
 * Hello [@pranciskus](https://wordpress.org/support/users/pranciskus/),
    I’m sorry
   to be late with the reply.
 * Thank you for the idea! It will be [implemented](https://github.com/yadenis/DCO-Comment-Attachment/commit/e1ca9360c4ad8acffb95f8af47d3f62651d7abee)
   in the next version.

Viewing 1 replies (of 1 total)

The topic ‘Input html field accept attribute’ is closed to new replies.

 * ![](https://ps.w.org/dco-comment-attachment/assets/icon-256x256.png?rev=2082370)
 * [DCO Comment Attachment](https://wordpress.org/plugins/dco-comment-attachment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dco-comment-attachment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dco-comment-attachment/)
 * [Active Topics](https://wordpress.org/support/plugin/dco-comment-attachment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dco-comment-attachment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dco-comment-attachment/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Denis Yanchevskiy](https://wordpress.org/support/users/denisco/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/input-html-field-accept-attribute/#post-14954407)
 * Status: resolved