Commit 9042fee9 authored by wangxuelai's avatar wangxuelai

ss

parent 605db5ef
......@@ -7,6 +7,7 @@ import {
getRandomFilename,
getAudioDuration,
getVideoDuration,
getPptRandomFilename,
} from '../utils/index';
import * as uploader from '../services/uploader';
import errorcode from '../common/errorcode';
......@@ -358,8 +359,9 @@ export default {
duration,
progressCallBack,
} = payload;
const filename = `${signature.dir}${getRandomFilename(file.name)}`;
// const filename = `${signature.dir}${getRandomFilename(file.name)}`;
const { name, size, type: fileType } = file;
const filename = `${signature.dir}${getFileType(fileType).filetype == 4 ? getPptRandomFilename(file.name) : getRandomFilename(file.name)}`;
const params = {
key: filename,
policy: signature.policy,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment