Closed Bug 135980 Opened 22 years ago Closed 4 years ago

Support sending files as attachments in mailto: form submit

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED INVALID
Future

People

(Reporter: john, Assigned: john)

References

Details

Currently, as in IE and NS 4.x, mailto: form submission (and the text/plain
encoding) do not encode file data at all, instead just sending the filename.  We
should do better and allow people to send actual files from a webpage without
requiring a server-side CGI.  This would be an immensely useful feature and I
suspect it would not break sites since there is no point in having <input
type=file> in a form that can't have files.

Depends, of course, on bug 61893 being fixed.
Depends on: 61893
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Future
Priority: -- → P4
QA Contact: vladimire → form-submission
Component: HTML: Form Submission → DOM: Core & HTML

This seems like a security issue. The user would have to be warned that he/she is about to send local files in a manner that cannot be overlooked.

This is working as designed per what is currently step 23 of https://html.spec.whatwg.org/#concept-form-submit (see "Mail with headers" and "Mail as body"). In particular for mailto: no serialization is allowed that would encode files.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.