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

Display value of form input field of type=file

Explorer ,
Apr 11, 2007 Apr 11, 2007

Copy link to clipboard

Copied

Does anyone know of a way to redisplay the value in a form field of type=file where a user browsed to a file to upload
and then returns to the form entry screen after submission b/c of validation errors?

The user has to rebrowse to the file to upload each time they are returned to
the previously filled form entry screen.

I don't see any way to add a "value" attribute to the input form field when the type=file.

Thanks.
TOPICS
Advanced techniques

Views

221

Translate

Translate

Report

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
Guest
Apr 11, 2007 Apr 11, 2007

Copy link to clipboard

Copied

LATEST
<INPUT TYPE="file" VALUE="#filename#"> won't work. Browsers ignore the VALUE attribute for security reasons.

Votes

Translate

Translate

Report

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
Documentation