[英]Pixlr API, POST not working anymore
I'm using the Pixlr API in Umbraco and the save functionality stopped working in the editor. 我在Umbraco中使用了Pixlr API,并且保存功能在编辑器中停止工作。
When the save button is clicked it will say: "working please wait..." and it doesn't do anything. 单击“保存”按钮时,它会显示:“正在工作,请稍候...”,它不会执行任何操作。
The whole code is here: https://damp.codeplex.com/releases/view/121209 整个代码在这里: https : //damp.codeplex.com/releases/view/121209
( Only the pixlr part in DigibizAdvancedMediaPicker ) ( 仅DigibizAdvancedMediaPicker中的pixlr部分 )
Pixlr API: http://pixlr.com/developer/api/ Pixlr API: http : //pixlr.com/developer/api/
I'm working on a localhost. 我正在本地主机上工作。 I have the crossdomain.xml and it looks like this:
我有crossdomain.xml,它看起来像这样:
<?xml version="1.0"?>
<!--This crossdomain file is used for Pixlr support in the Digibiz Advanced Media Picker.-->
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
<site-control permitted-cross-domain-policies="master-only"/>
<allow-http-request-headers-from domain="*" headers="*" secure="true"/>
</cross-domain-policy>
I found more people with the same problem here: http://support.pixlr.com/pixlr/topics/pixlr_api_not_saving_changes 我在这里发现了更多有相同问题的人: http : //support.pixlr.com/pixlr/topics/pixlr_api_not_saving_changes
and here: 和这里:
http://support.pixlr.com/pixlr/products/pixlr_pixlr_api http://support.pixlr.com/pixlr/products/pixlr_pixlr_api
For all Umbraco DAMP users, a while ago I had to change the code for the Pixlr plugin to work. 对于所有Umbraco DAMP用户,前段时间我不得不更改Pixlr插件的代码才能正常工作。 You can find it here: https://damp.codeplex.com/
您可以在这里找到它: https : //damp.codeplex.com/
This is the change I made, if you want to know the changes: https://damp.codeplex.com/SourceControl/network/forks/MCollard/FixSavePixlr/changeset/4180f1d1d8e3 https://damp.codeplex.com/SourceControl/changeset/4180f1d1d8e3 如果您想知道更改,这就是我所做的更改: https : //damp.codeplex.com/SourceControl/network/forks/MCollard/FixSavePixlr/changeset/4180f1d1d8e3 https://damp.codeplex.com/SourceControl/变更集/ 4180f1d1d8e3
Comment with the fork: Attempt to fix an issue with pixlr. 用叉子评论:尝试解决pixlr的问题。 Images wouldn't save, so I changed the POST method to GET.
图片无法保存,因此我将POST方法更改为GET。 The Get method will return an URL instead of an image so the save part had to be changed.
Get方法将返回URL而不是图像,因此必须更改保存部分。 It is possible to save as PNG or JPEG.
可以另存为PNG或JPEG。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.