Javascript Error While Uploading Images

Guys have you every encountered attached error? I am using twitter bootstrap in my code.

5895

Screen Shot 2014-09-01 at 11.00.15 PM.png

it says Empty string passed to getElementById().

i am actually using bootstrap.js in my application!

Whenever I try to upload an image, it throws me this error…