Merge pull request #1983 from mei23/mei-osct

This commit is contained in:
syuilo 2018-07-26 11:56:00 +09:00 committed by GitHub
commit 34effff5fe

View File

@ -25,7 +25,7 @@ async function save(readable: stream.Readable, name: string, type: string, hash:
const minio = new Minio.Client(config.drive.config);
const id = uuid.v4();
const obj = `${config.drive.prefix}/${id}`;
await minio.putObject(config.drive.bucket, obj, readable);
await minio.putObject(config.drive.bucket, obj, readable, size, { 'Content-Type': type });
Object.assign(metadata, {
withoutChunks: true,