PhotoEditorSDK:无需自动下载即可导出到服务器? [英] PhotoEditorSDK : export to server without auto download?

查看:126
本文介绍了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.

这篇关于PhotoEditorSDK:无需自动下载即可导出到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆