Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some todos #289

Merged
merged 9 commits into from
Apr 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spx-gui/src/models/common/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class File {
})
const ab = await this.arrayBuffer()
if (cancelled) throw new Cancelled()
const url = URL.createObjectURL(new Blob([ab]))
const url = URL.createObjectURL(new Blob([ab], { type: this.type }))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的this.type我记得不会保存(保存到cloud之后再加载下来type信息会丢失)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯现在调用上传接口的时候没有把 mime type 提交,这个我单独 PR 解决下吧,得去看下对象存储的接口

onCleanup(() => URL.revokeObjectURL(url))
return url
}
Expand Down
Loading