Side navigation
#3639 closed bug (wontfix)
Opened November 24, 2008 04:01AM UTC
Closed January 20, 2009 03:09AM UTC
Last modified April 15, 2014 11:16AM UTC
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 | |
Blocked by: | Blocking: |
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>
Attachments (0)
Change History (4)
Changed November 25, 2008 11:29AM UTC by comment:1
cc: | → kakilang |
---|---|
component: | unfilled → core |
need: | Review → Test Case |
owner: | flesler |
Changed January 20, 2009 03:09AM UTC by comment:2
resolution: | → wontfix |
---|---|
status: | new → closed |
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.
Changed August 06, 2013 11:58AM UTC by comment:3
For any changes in 1.7.1 regarding this..
Changed April 15, 2014 11:16AM UTC by comment:4
Replying to [ticket:3639 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>
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