#3639 closed bug (wontfix)
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>
Change History (4)
comment:1 Changed 14 years ago by
Cc: | kakilang added |
---|---|
Component: | unfilled → core |
need: | Review → Test Case |
Owner: | flesler deleted |
comment:2 Changed 14 years ago by
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.
comment:4 Changed 9 years ago by
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>
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