Skip to content

Releases: nahanil/skipper-minio

0.3.0

16 Aug 15:41
63abf12
Compare
Choose a tag to compare
  • Adds maxBytesPerFile option (to compliment maxBytes with multi-file uploads)

0.2.0

15 Apr 16:50
902aeb7
Compare
Choose a tag to compare
  • Throws correct error (E_EXCEEDS_UPLOAD_LIMIT/E_INVALID_FILE_TYPE)
  • Replaced mmmagic with file-type
  • Fixes #2
  • No longer supports Node < 8

0.1.6

28 Feb 09:21
Compare
Choose a tag to compare
  • Catch "transformer" errors.
// ...
    .intercept('E_TRANSFORM_FAILED', (err) => {
      const { code, name, orig } = err
      return { badRequest: { message: 'The image you have uploaded appears incomplete or corrupt' } }
    })

0.1.3

30 Jun 18:17
Compare
Choose a tag to compare
  • Final filename coercion
    • Specifying runSaveAsAfterMimeDetection: true will re-run the saveAs method just before uploading the file to Minio/S3 and update the skipperFd returned to userland code from sails.uploadOne and friends.

0.1.2

19 Jun 14:52
Compare
Choose a tag to compare
  • Recursively delete files if given an 'fd' ending in a wildcard like post-12/* (the /*) bit kicks it off. Buyer beware: You could end up getting stuck in a recursive loop if you have silly file names.

0.1.1

19 Apr 11:57
Compare
Choose a tag to compare
  • Detect incoming file's mime type before initialising transformer
  • Default to use AWS S3 if no endPoint is provided

0.0.1

18 Apr 22:53
Compare
Choose a tag to compare