feat(upload): detect and specify mime type for files uploaded to S3 and OSS

This commit is contained in:
Aaron Liu 2023-05-27 10:30:20 +08:00
parent 1a772b1fe5
commit 6bd7a89c74
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,8 @@ export interface UploadSessionRequest {
name: string;
policy_id: number;
last_modified?: number;
mime_type?: string;
}
export interface UploadCredential {

View File

@ -127,6 +127,7 @@ export default abstract class Base {
name: this.task.file.name,
policy_id: this.task.policy.id,
last_modified: this.task.file.lastModified,
mime_type: this.task.file.type,
},
this.cancelToken.token
);