Duplicate window for upload image

59 views
Skip to first unread message

Rosangela Oliveira

unread,
Oct 14, 2015, 1:32:55 PM10/14/15
to Django developers (Contributions to Django itself)
Hi,I need some help....

I have a problem when I try to upload the image in a  django project, it's open the windows to upload the image twice.

in HTML I did:

<div class="col-md-10">
<input type="image" src="http://shackmanlab.org/wp-content/uploads/2013/07/person-placeholder.jpg" width='125px' height='125px' style="float:left; margin-top:40px; margin-bottom:10px; margin-right:30px"></input>
<input type="file" id="my_file" style="display: none;"/>
<font size="6" style="position:absolute; bottom:0">teste</font>
</div>


in controller
}
$("input[type='image']").click(function () {
$("input[id='my_file']").click();
});
}

Thanks for helping

Tim Graham

unread,
Oct 14, 2015, 2:09:10 PM10/14/15
to Django developers (Contributions to Django itself)
Please write to django-users, this mailing list is for the development of Django itself.

Rosangela Oliveira

unread,
Oct 14, 2015, 6:20:04 PM10/14/15
to Django developers (Contributions to Django itself)
Thanks, i will try in another group.
Reply all
Reply to author
Forward
0 new messages