title: Safari crash while taking photo in iPhone 4S [iOS 8.1]
body: <p>I am using following code for capture photo and display/store. This same code working fine in iPhone 5 with iOS 7.1.2 but in iPhone 4S with iOS 8.1 safari will crash every time when i take photo.</p>
  <pre><code>&lt;body&gt;
      &lt;img id=&quot;uploadPreview&quot; style=&quot;width: 100px; height: 100px;&quot;&gt;
      &lt;input id=&quot;uploadImage&quot; type=&quot;file&quot; name=&quot;myPhoto&quot; onchange=&quot;PreviewImage();&quot;&gt;
      &lt;script type=&quot;text/javascript&quot;&gt;
          function PreviewImage() {
              var oFReader = new FileReader();
              oFReader.readAsDataURL(document.getElementById(&quot;uploadImage&quot;).files[0]);
              oFReader.onload = function (oFREvent) {
                  document.getElementById(&quot;uploadPreview&quot;).src = oFREvent.target.result;
              };
          };
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  <p><a href="http://jsfiddle.net/nsemaz2y/" rel="noreferrer">Demo</a><br />
  Following message show in safari after take photo</p>
  <blockquote>
  <p>A problem occurred with this webpage so it was reloaded</p>
  </blockquote>
  <p><strong>Update</strong>
  Now i am doing same task on same device but with iOS version 8.1.2. Still same problem occured</p>