PhotoEditorSDK:无需自动下载即可导出到服务器?

问题描述:

我在我的角度应用中使用 https://docs.photoeditorsdk.com 。文档中有一个导出到服务器的功能:

i'm using https://docs.photoeditorsdk.com in my angular app. There is an export to server function in the docs:

editor.export(
PhotoEditorSDK.RenderType.DATAURL,
PhotoEditorSDK.ImageFormat.JPEG,
0.8 // JPEG质量:80%
).then((dataUrl)=> {
//上传到服务器
})

我得到图片 dataUrl ,但图片也会在浏览器中下载。我想阻止下载。

I get the image dataUrl, but the image is also downloaded at the browser. I want to prevent the download.

我从他们的支持中获得了帮助,在配置指南中: https://docs.photoeditorsdk.com/guides/html5/v4-DesktopUI/introduction/configuration 底部是导出对象,只需要传递 download:false

I got help from their support, in the configuration guide : https://docs.photoeditorsdk.com/guides/html5/v4-DesktopUI/introduction/configuration at the bottom is the export object, just need to pass download: false.