title: METEOR: How to implement fallback if asset come with 404 not found? HTTP get?
body: <p>I'm using <code>meteor-upload</code> to upload user file. So far working as expected. I store uploaded file name into collection like this pattern:</p>
  
  <pre><code>"profile" : {
          "avatar" : "/upload/some_random_id.jpg"
  }
  </code></pre>
  
  <p>In case, some unexpected issue happen (app crash or update or something which will destroy local asset), I backup upload folder into different server. Just called <code>http://backupsite.com</code>.</p>
  
  <p>How to implement fallback if local asset come with 404 not found? What I can think is to use conditional statement like this:</p>
  
  <pre><code>{{#if profile.avatar loaded}}
      &lt;img src="{{this}}"&gt;
  {{else}}
      &lt;img src="http://backupsite.com{{this}}"&gt;
  {{/if}}
  </code></pre>
  
  <p>Now is helper. How to check whether <code>profile.avatar</code> is loaded or not? HTTP get?</p>
  
  <p>thank You...</p>