diff --git a/js/wpaint.js b/js/wpaint.js
index 67d58fc2..a245a22b 100644
--- a/js/wpaint.js
+++ b/js/wpaint.js
@@ -44,7 +44,7 @@ oekaki.init = function() {
var oekaki_form = '
Oekaki | |
';
// Add oekaki after the file input
- $('form[name="post"]:not(#quick-reply) input[type="file"]').parent().parent().after(oekaki_form);
+ $('form[name="post"]:not(#quick-reply) [id="upload"]').after(oekaki_form);
$('').appendTo($("head"));
$('').appendTo($("head"));