mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-29 23:38:55 +09:00
Set Content-Type to object-storage
This commit is contained in:
parent
206ddd6d36
commit
308f357c4f
@ -25,7 +25,7 @@ async function save(readable: stream.Readable, name: string, type: string, hash:
|
|||||||
const minio = new Minio.Client(config.drive.config);
|
const minio = new Minio.Client(config.drive.config);
|
||||||
const id = uuid.v4();
|
const id = uuid.v4();
|
||||||
const obj = `${config.drive.prefix}/${id}`;
|
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, {
|
Object.assign(metadata, {
|
||||||
withoutChunks: true,
|
withoutChunks: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user