Skip to main content
Inspiring
September 3, 2009
Question

cfinput type=File

  • September 3, 2009
  • 2 replies
  • 2285 views

Just noticed something with <cfinput type="file">. If you select a file and then decide that you do not want any file at all, how do you clear out the box. It appears that once a file has been selected, you can not clear it out.

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    September 3, 2009

    <cfinput type="reset" name="reset">

    Inspiring
    September 3, 2009

    Use your mouse (tab key does not appear to work) to put your curser into the input.  Select all the text and delete it.

    rmorganAuthor
    Inspiring
    September 3, 2009

    Ahhh. This works in IE, but in Firefox it does not.

    Firefox has the text portion grayed out.

    Inspiring
    September 3, 2009

    Refresh the page.