Title: md-file
Last modified: December 21, 2017

---

# md-file

 *  Resolved [remykonings28](https://wordpress.org/support/users/remykonings28/)
 * (@remykonings28)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/md-file-2/)
 * Hi 🙂
 * I like some advice on how to write the code for the file upload function.
 * This is what I have now:
 * [md-file]
    [file* file-548 limit:1000 filetypes:jpg|jpeg|png] [/md-file]
 * and that works but i like to change the name of the button and the default “no
   file chosen” with:
 * **nofile **– the text to show before a file is chosen (default: No file chosen)
   **
   btn_text** – the button text (default: Choose file) **label **– the label for
   your form field **help**
 * How do i write these within the context of the other code. Could someone do me
   an example 🙂 thank you.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmd-file-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [GusRuss89](https://wordpress.org/support/users/gusruss89/)
 * (@gusruss89)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/md-file-2/#post-9803037)
 * Hi [@remykonings28](https://wordpress.org/support/users/remykonings28/),
 * It should look like this.
 *     ```
       [md-file nofile="Your no file text" btn_text="Your button text"]
       [file* file-548 limit:1000 filetypes:jpg|jpeg|png]
       [/md-file]
       ```
   
 * Best of luck 🙂
 * Angus
 *  Thread Starter [remykonings28](https://wordpress.org/support/users/remykonings28/)
 * (@remykonings28)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/md-file-2/#post-9803417)
 * Thank you very much, that worked great 🙂

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

The topic ‘md-file’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/material-design-for-contact-form-
   7_f8f8f8.svg)
 * [Material Design for Contact Form 7](https://wordpress.org/plugins/material-design-for-contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/material-design-for-contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/material-design-for-contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/material-design-for-contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/material-design-for-contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/material-design-for-contact-form-7/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [remykonings28](https://wordpress.org/support/users/remykonings28/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/md-file-2/#post-9803417)
 * Status: resolved