Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfinput type=File

Explorer ,
Sep 03, 2009 Sep 03, 2009

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.

2.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 03, 2009 Sep 03, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 03, 2009 Sep 03, 2009

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

Firefox has the text portion grayed out.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 03, 2009 Sep 03, 2009

Refresh the page.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 03, 2009 Sep 03, 2009

Refreshing it does not change whether it is grayed out or not. Wonder if it is a security setting, must go look now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 03, 2009 Sep 03, 2009
LATEST

regarding firefox, never saw that before.

BKBK's answer looks like the right idea.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2009 Sep 03, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources