The problem is caused by function of system inlineAttach.js creating an inline attach automatically for the ‘input[type=file]’ element. Adding a class attribute to the input element like '<input type='file' class='ignore-inline-attach'>, the sidebar turns out to be visible.