Closed Bug 127827 Opened 23 years ago Closed 23 years ago

value attribute for input type="file" doesn't behave as expected

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

VERIFIED WONTFIX

People

(Reporter: raj, Assigned: rods)

References

()

Details

Attachments

(1 file)

Mozilla 0.9.8 (milestone, build id 2002020406) on Windows 2000. The HTML 4.01 Transitional spec says that if you specify a value attribute to an input type="file", this should be used as the initial filename (see given URL and scroll down to 'File'). This behaviour is correctly replicated in Opera 6, but not Mozilla, IE5.5 or Netscape 4.75. I'll attach a simple testcase with several variations on the filename as soon as I write one.
This is an HTML file with several input type="file" elements on it (it validates by the W3C validator) each with a different variation on the filename (eg, c:/file.ext, /file.ext).
The 'value' attribute of file inputs are ignored for security reasons (to prevent web pages from tricking users into uploading random files). This is by design and will not be changed. While Opera does allow 'value' on file inputs, it displays a warning dialog before submitting the form. Marking WONTFIX.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
This was discussed in bug 44465.
Marking VERIFIED WONTFIX based on bug 44465.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: