title: HTML file input control with capture and accept attributes works wrong?
body: <h1>My problem:</h1>
  
  <p>Then user click the <code>input type=file</code> user must get the <code>upload file + camera</code> dialog. I'm using for this html attributes <code>accept</code> and <code>capture</code>. But on some modern devices this doesn't happen. Below there are the code examples and the table which of its works or not. Code examples are tested in <code>Mobile Safari</code> and <code>Chrome</code>.</p>
  
  <p><strong>TL;DR:</strong></p>
  
  <p>I have 5 code examples with just <code>input type file</code>:</p>
  
  <p><em>1.(<a href="http://jsfiddle.net/4WHw5/show" rel="noreferrer"><code>jsfiddle</code></a>)</em></p>
  
  <pre><code>&lt;input type="file" accept="image/*" capture&gt;
  </code></pre>
  
  <p><em>2. (<a href="http://jsfiddle.net/4WHw5/1/show" rel="noreferrer"><code>jsfiddle</code></a>)</em></p>
  
  <pre><code>&lt;input type="file" accept="image/*" capture="camera"&gt;
  </code></pre>
  
  <p><em>3. (<a href="http://jsfiddle.net/4WHw5/2/show" rel="noreferrer"><code>jsfiddle</code></a>)</em></p>
  
  <pre><code>&lt;input type="file" capture="camera"&gt;
  </code></pre>
  
  <p><em>4. (<a href="http://jsfiddle.net/4WHw5/3/show" rel="noreferrer"><code>jsfiddle</code></a>)</em></p>
  
  <pre><code>&lt;input type="file" capture&gt;
  </code></pre>
  
  <p><em>5. (<a href="http://jsfiddle.net/4WHw5/4/show" rel="noreferrer"><code>jsfiddle</code></a>)</em></p>
  
  <pre><code>&lt;input type="file" accept="image/*"&gt;
  </code></pre>
  
  <p>Test devices:</p>
  
  <ul>
  <li>Samsung S3 (Android 4.1.2)</li>
  <li>Samsung S3 (Android 4.3)</li>
  <li>Samsung Galaxy Tab 2 7.0 (Android 4.2.2)</li>
  <li>Samsung Note (Android 4.1.2)</li>
  <li>iPhone 5 (iOS 7.0.4)</li>
  <li>Nexus 4 (Android 4.4)</li>
  </ul>
  
  <p>Table of results:</p>
  
  <ul>
  <li>W(ork) - means enabled <code>upload image dialog with camera</code></li>
  <li>P(artially works) - means enabled <code>upload dialog(not image only) with camera</code></li>
  <li>N(ot work) - means <code>only camera</code> enabled</li>
  <li>Ch - means <code>Chrome</code></li>
  <li>MS - means <code>Mobile Safari</code></li>
  </ul>
  
  <p>#</p>
  
  <pre><code>--------------------------------------------------------------------------------
  |devices/example   | Ch 1| Ch 2| Ch 3| Ch 4| Ch 5| MS 1| MS 2| MS 3| MS 4| MS 5| 
  --------------------------------------------------------------------------------
  |Samsung S3/4.1    |  N  |  N  |  P  |  P  |  W  |  W  |  N  |  P  |  P  |  W  |
  --------------------------------------------------------------------------------
  |Samsung S3/4.3    |  N  |  N  |  P  |  P  |  P  |  N  |  N  |  P  |  P  |  P  |
  --------------------------------------------------------------------------------
  |Samsung Galaxy Tab|  N  |  N  |  P  |  P  |  W  |  W  |  N  |  P  |  P  |  W  |
  --------------------------------------------------------------------------------
  |Samsung Note      |  N  |  N  |  P  |  P  |  W  |  W  |  N  |  P  |  P  |  W  |
  --------------------------------------------------------------------------------
  |iPhone 5          |  W  |  W  |  P  |  P  |  W  |  W  |  Y  |  P  |  P  |  W  |
  --------------------------------------------------------------------------------
  |Nexus 4           |  N  |  N  |  P  |  P  |  W  |  -  |  -  |  -  |  -  |  -  |
  --------------------------------------------------------------------------------
  </code></pre>
  
  <p>As you can see I can get only <code>upload file + camera</code> dialog for all browsers using</p>
  
  <p><code>&lt;input type="file" accept="image/*"&gt;</code> only. But there is no <code>capture</code> attribute in this case, and this worrying me and there is a problem with Android 4.3.</p>
  
  <h2>My questions are:</h2>
  
  <ol>
  <li>Are behaviors in table true? Android 4.3 behavior is a bug?</li>
  <li>Can I trust for browsers what its will always add camera to upload
      dialog without capture attribute? (Please add proof links for answer)</li>
  </ol>
  
  <p>Thanks.</p>
  
  <p>P.S. Question is special, but on my site I must provide for users access to its images and camera. Also I think my table can be helpful for anybody and also I will searching for answer to and will post my answer here if nobody answer.</p>