Title: File input field behavior
Last modified: April 14, 2021

---

# File input field behavior

 *  Resolved [mschouten](https://wordpress.org/support/users/mschouten/)
 * (@mschouten)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/file-input-type/)
 * I have a form with 2 file input fields. When i upload a file in one file input
   field, the other one also contains the uploaded file, how can this be prevented?
   
   Because i want a image and attachment on my form: [https://sto-plaza.com/metform-form/sto-plaza-project/](https://sto-plaza.com/metform-form/sto-plaza-project/)
    -  This topic was modified 5 years, 1 month ago by [mschouten](https://wordpress.org/support/users/mschouten/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/file-input-type/#post-14316746)
 * Hello [@mschouten](https://wordpress.org/support/users/mschouten/) ,
 * It seems you have given same name for both file upload inout widget and that 
   is why this issue is happening. Every input field name should be unique in a 
   form.
 * Please change one of the file upload widget name ([screenshot](https://prnt.sc/11dlfjy))
   and your issue will be solved.
 * Let us know the update and we are always here to help you.
 * Regards,
    Benjir
 *  Thread Starter [mschouten](https://wordpress.org/support/users/mschouten/)
 * (@mschouten)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/file-input-type/#post-14316781)
 * yes thank you! That solves the problem:)
 *  [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * (@benjirahmed)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/file-input-type/#post-14316844)
 * Hey [@mschouten](https://wordpress.org/support/users/mschouten/) ,
 * Glad to hear that 🙂
 * If this plugin looks good to you, may be you can help us by giving a 5 star on
   wordpress.org?
 * – [https://wordpress.org/support/plugin/metform/reviews/](https://wordpress.org/support/plugin/metform/reviews/)
 * We’re working so hard to make this plugin more and more useful to our valuable
   clients like you, and a 5 star will really help us to grow on the market. 🙂
 * Best Regards,
    Benjir

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘File input field behavior’ is closed to new replies.

 * ![](https://ps.w.org/metform/assets/icon-256x256.png?rev=3260686)
 * [MetForm - Contact Form, Survey, Quiz, & Custom Form Builder for Elementor](https://wordpress.org/plugins/metform/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/metform/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/metform/)
 * [Active Topics](https://wordpress.org/support/plugin/metform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/metform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/metform/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [benjirahmed](https://wordpress.org/support/users/benjirahmed/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/file-input-type/#post-14316844)
 * Status: resolved