title: Is there a way to hide the Primefaces fileUpload progress bar and buttons in advanced mode and auto mode?
body: <p>Is there a way to hide the Primefaces fileUpload progress bar and buttons in advanced mode and auto mode?</p>
  
  <p>Here is the code that I am using:</p>
  
  <pre><code>&lt;p:fileUpload id="scriptUpload" 
                          widgetVar="importDevicesWidget" 
                          fileUploadListener="#{scriptUploadBean.handleFileUpload}"
                          auto="true"
                          label="Choose.."
                          mode="advanced" 
                          update=":infoMessages"
                          sizeLimit="8192" 
                          allowTypes="/(\.|\/)(txt)$/"
                          onstart="clearInvalidFileMsg();$('#progress').show();"
                          oncomplete="clearInvalidFileMsg();$('#progress').hide();importDevicesDialogWidget.hide()"/&gt; 
  </code></pre>
  
  <p>The problem is that it makes no sense for the buttons that appear next to the progress bar for each file to be there as the mode is auto so the upload already started!</p>
  
  <p>Here is a screen shot:</p>
  
  <p><img src="https://i.stack.imgur.com/j2pst.png" alt="enter image description here"></p>