保存鸟类保存图像的永久url(使用filepicker.io和鸟类工具)

保存鸟类保存图像的永久url(使用filepicker.io和鸟类工具),filepicker.io,aviary,Filepicker.io,Aviary,我试图让一个用户上传一张图片,这张图片是用filepicker选择的,然后用aviary编辑的。我可以在保存图像时获取图像的新url,但我不确定如何使其保持不变(即,我希望此url保持永久性,以便我可以将其保存在数据库中并不断使用图像)。有办法做到这一点吗?谢谢你的帮助。这是我现在的代码: $(function() { var a=new Aviary.Feather({ apiKey:'##################', apiVersion:2,

我试图让一个用户上传一张图片,这张图片是用filepicker选择的,然后用aviary编辑的。我可以在保存图像时获取图像的新url,但我不确定如何使其保持不变(即,我希望此url保持永久性,以便我可以将其保存在数据库中并不断使用图像)。有办法做到这一点吗?谢谢你的帮助。这是我现在的代码:

$(function()  {
  var a=new Aviary.Feather({

        apiKey:'##################',
        apiVersion:2,
        tools: 'all',
        initTool: 'crop',
        cropPresets: [['Square','1:1']],
        onSave: function(imageID, newURL) {

            /*
            filepicker.store(newURL,{},function(new_fpfile) {

                console.log(JSON.stringify(new_fpfile));

                            });
             */

            //used to store the url, but I assume this url is temporary
            $.getJSON(
                      "/aviary_store.php", // The server URL
                      { aviary_id : newURL }, // Data you want to pass to the server.
                      function(json) {

                        var aviary_url = json[0];

                      });

                 console.log(JSON.stringify(newURL));
                 console.log(JSON.stringify(imageID));
        },

        onError:function(a){},appendTo:"editpane"});filepicker.setKey(server_vars.apikey);$(".openbutton").click(function(){filepicker.pick({mimetype:'image/*'},function(b){var c=$('<img id="#editimage"/>');c.attr("src",b.url);$(".editpane").empty().append(c);a.launch({image:c[0],url:b.url});});});});  
$(函数(){
var a=新鸟舍。羽毛({
apiKey:“###############”,
版本:2,,
工具:“全部”,
initTool:'裁剪',
裁剪重置:[[Square','1:1']],
onSave:函数(imageID,newURL){
/*
store(newURL,{},函数(new_fpfile){
log(JSON.stringify(new_fpfile));
});
*/
//用于存储url,但我假设此url是临时的
$.getJSON(
“/aviary\u store.php”,//服务器URL
{aviary\u id:newURL},//要传递到服务器的数据。
函数(json){
var avariy_url=json[0];
});
log(JSON.stringify(newURL));
log(JSON.stringify(imageID));
},

onError:function(a){},appendTo:“editpane”};filepicker.setKey(server_vars.apikey);$(“.openbutton”)。单击(function(){filepicker.pick({mimetype:'image/*'),function(b){var c=$(“最好的方法是使用
filepicker.storeUrl
,它将获取保存的鸟舍图像的内容并下载到S3上作为永久存储

如何从S3中提取文件并将其与特定用户关联?我尝试在onSave中使用fielpicker.storeUrl,并使用newURL作为传递的变量。这不起作用,filepicker未打开。有什么想法吗?filepicker.storeUrl会将文件保存到S3,如果您想允许用户将其导出到云存储,请使用filepicker.export。它是免费的还是我们需要一个特殊帐户?