A simple file sharing site with an easy to use API and online panel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
1.1KB

  1. <div class="upload">
  2. <form id="upload-form" ng-submit="submit()">
  3. <button id="upload-btn" class="btn" ngf-select="uploadFiles($files, $invalidFiles)" ngf-max-size="128MB" multiple>Select or drop file(s)</button>
  4. </form>
  5. <ul id="upload-filelist">
  6. <li ng-repeat="file in files">
  7. <span class="list-name" ng-bind="file.name"></span>
  8. <progress class="list-progress" max="100" value="{{file.progress}}" ng-hide="file.progress == 100"></progress>
  9. <span class="list-url">
  10. <a href="{{file.result.url}}" ng-hide="file.progress < 100">{{file.result.url}}</a>
  11. <button class="list-url-clipboard-btn" ngclipboard data-clipboard-text="{{file.result.url}}">
  12. <img src="/img/glyphicons-512-copy.png"/>
  13. </button>
  14. </span>
  15. </li>
  16. <li ng-repeat="file in errorFiles">
  17. <span class="list-name" ng-bind="file.name"></span>
  18. <span class="list-err">Error: {{errToString(file.$error)}}</span>
  19. </li>
  20. </ul>
  21. </div>