Closed Bug 316182 Opened 19 years ago Closed 14 years ago

File will not be submited when moving input parent form.appendChild(FileInput)

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: bkausbk, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051107 Firefox/1.5

It isn't possible to move an file input control to another form control. No file will be submited. (PHP Error number 4)

Reproducible: Always

Steps to Reproduce:
var form = document.getElementById("TheForm");
var FileInput = document.getElementById("FileInput");
form.appendChild(FileInput);
form.submit();
Actual Results:  
Nothing gets uploaded.

Expected Results:  
File should be uploaded

*** This bug has been marked as a duplicate of 286619 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Alright, I take that back. You don't have any addEventListeners in your code. Could you attach a testcase that displays the problem?
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
You'll find a testcase at http://www.kalytta.com/testcase.316182.php
I wasn't able to upload something for an unknown reason.
Attached file testcase
This is the testcase. It's a PHP file only to print_r the $_FILE array which contains the file input data.
Attachment #204882 - Attachment mime type: text/html → text/php
Attachment #204882 - Attachment mime type: text/php → text/html
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
The attachment works for me locally. If you find this bug is still present, please do reopen.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago14 years ago
Resolution: --- → WORKSFORME
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: