How to use the ember-file-upload/file.fromBlob function in ember-file-upload

To help you get started, we’ve selected a few ember-file-upload examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NYCPlanning / labs-zap-search / app / controllers / my-projects / assignment / recommendations / add.js View on Github external
const copyCompletionStatuses = this.dispositions.map(async (disposition) => {
      // use this private/undocument .blob property to duplicate the file
      const fileCopy = await File.fromBlob(file.blob);
      this.queuesByDisposition[disposition.id].push(fileCopy);
      return true;
    });
    const resolvedStatuses = await Promise.all(copyCompletionStatuses);