0
我的代碼如何保存圖像生成到百鳥
var featherEditor = new Aviary.Feather({
\t apiKey: 'your-client-id-here',
\t theme: 'light', // Check out our new 'light' and 'dark' themes!
\t tools: 'all',
\t appendTo: '',
\t onSave: function(imageID, newURL) {
\t \t var img = document.getElementById(imageID);
\t \t img.src = newURL;
\t },
\t onError: function(errorObj) {
\t \t alert(errorObj.message);
\t }
});
function launchEditor(id, src) {
\t featherEditor.launch({
\t \t image: id,
\t \t url: src
\t });
\t return false;
}
<!-- Load Feather code -->
<script type="text/javascript" src="http://feather.aviary.com/imaging/v3/editor.js"></script>
<div id='injection_site'></div>
<img id='image1' src='http://images.aviary.com/imagesv5/feather_default.jpg'/>
<!-- Add an edit button, passing the HTML id of the image and the public URL of the image -->
<p><input type='image' src='http://images.aviary.com/images/edit-photo.png' value='Edit photo' onclick="return launchEditor('image1', 'http://images.aviary.com/imagesv5/feather_default.jpg');" /></p>
我想保存圖像生成到百鳥:https://s3.amazonaws.com/feather-client-files-aviary-prod-us-east-1/2016-06-06/178ba6a3-0488-4b43-b4bc-133cf499c72c.jpg,並插入到MySQL。
如何取得網址並插入Mysql。
非常感謝!
Arceliver,非常感謝! –
Arceliver,對不起沒有回覆你。 我沒有發佈您的帖子。 我對StackOverflow.com沒有太多的經驗 您的解決方案非常完美! 感謝回覆! –