Bug Tracker

Ticket #3639 (closed bug: wontfix)

Opened 6 years ago

Last modified 6 months ago

empty value when clone file input field in IE

Reported by: kakilang Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc: kakilang
Blocking: Blocked by:

Description

It works well in other browsers, except IE.

('#submit').submit(function(){

$('#form2').append($('#photo').clone());

});

<form id="form1"> <input type="file" name="photo" id="photo"> <input type="submit" id="submit"> </form>

<form id="form2"> </form>

Change History

comment:1 Changed 6 years ago by flesler

  • Cc kakilang added
  • need changed from Review to Test Case
  • Component changed from unfilled to core
  • Owner flesler deleted

The inputs are missing the closing dash. Can you turn this loose data into a formal test case ? a minimalistic html file with the requires html and js to reproduce the problem.

Use this link to include jQuery:  http://code.jquery.com/jquery-nightly.js

comment:2 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to wontfix

This is a limitation of cloning most form elements in IE and we are unable to set the value of the file input via javascript due to security restrictions.

comment:3 Changed 15 months ago by raju

For any changes in 1.7.1 regarding this..

comment:4 in reply to: ↑ description Changed 6 months ago by sathishvikkas

Replying to kakilang:

It works well in other browsers, except IE.

('#submit').submit(function(){

$('#form2').append($('#photo').clone());

});

<form id="form1"> <input type="file" name="photo" id="photo"> <input type="submit" id="submit"> </form>

<form id="form2"> </form>

Note: See TracTickets for help on using tickets.