mirror of
https://github.com/cloudreve/frontend.git
synced 2025-12-26 04:02:47 +00:00
feat(upload): detect and specify mime type for files uploaded to S3 and OSS
This commit is contained in:
parent
1a772b1fe5
commit
6bd7a89c74
|
|
@ -52,6 +52,8 @@ export interface UploadSessionRequest {
|
|||
name: string;
|
||||
policy_id: number;
|
||||
last_modified?: number;
|
||||
|
||||
mime_type?: string;
|
||||
}
|
||||
|
||||
export interface UploadCredential {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue