Releases: nahanil/skipper-minio
Releases · nahanil/skipper-minio
0.3.0
- Adds
maxBytesPerFile
option (to compliment maxBytes
with multi-file uploads)
0.2.0
- 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
- 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
- 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
- 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
- Detect incoming file's mime type before initialising
transformer
- Default to use AWS S3 if no
endPoint
is provided