forked from mirror/misskey
trim filename
This commit is contained in:
parent
f8fc31f14a
commit
9535759787
@ -31,7 +31,7 @@ async function job(file: IDriveFile): Promise<any> {
|
|||||||
|
|
||||||
const minio = new Minio.Client(config.drive.config);
|
const minio = new Minio.Client(config.drive.config);
|
||||||
|
|
||||||
const name = file.filename;
|
const name = file.filename.substr(0, 50);
|
||||||
const keyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
const keyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
||||||
const key = `${keyDir}/${name}`;
|
const key = `${keyDir}/${name}`;
|
||||||
const thumbnailKeyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
const thumbnailKeyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user