mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
trim filename
This commit is contained in:
parent
908221287e
commit
fc0a98cef0
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ async function job(file: IDriveFile): Promise<any> {
|
|||
|
||||
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 key = `${keyDir}/${name}`;
|
||||
const thumbnailKeyDir = `${config.drive.prefix}/${uuid.v4()}`;
|
||||
|
|
Loading…
Reference in a new issue