Saving a permanent url for an aviary saved image (using filepicker.io and aviary tool) -


i trying have user upload picture has been chosen filepicker , edited aviary. can new url image when saved, unsure of how persist (i.e. url remain permanent can save in database , use image). there way this? thank help. here code now:

$(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 store url, assume url temporary             $.getjson(                       "/aviary_store.php", // server url                       { aviary_id : newurl }, // data want pass 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});});});});   

the best way use filepicker.storeurl, take contents of saved aviary image , download permanent storage on s3


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -