{{#if url}} {{else if file}} {{!-- Upload in progress! --}} {{#if failureMessage}}
{{failureMessage}}
{{/if}}
{{#if failureMessage}} {{/if}} {{else}} {{#if showUploadForm}} {{!-- file selection/drag-n-drop --}}
{{#gh-file-input multiple=false alt=description action=(action 'fileSelected') accept=accept}}
{{description}}
{{/gh-file-input}}
{{else}} {{!-- URL input --}}
{{gh-input url class="url" placeholder="http://" update=(action "onInput") onenter=(action "saveUrl")}} {{#if saveButton}} {{else}}
{{description}}
{{/if}}
{{#if canShowUploadForm}} {{/if}} {{/if}} {{/if}}