How to use the activestorage/src/file_checksum.FileChecksum.create function in activestorage

To help you get started, we’ve selected a few activestorage 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 chaskiq / chaskiq / app / javascript / src / shared / fileUploader.js View on Github external
return new Promise((resolve, reject) => {
    FileChecksum.create(file, (error, checksum) => {
      if (error) {
        reject(error);
        return;
      }

      resolve(checksum);
    });
  });
}

activestorage

Attach cloud and local files in Rails applications

MIT
Latest version published 2 years ago

Package Health Score

78 / 100
Full package analysis