javascript - Parsing the Image URL with Filepicker.io -


i trying post image url , coming out so=

https://www.filepicker.io/api/file/geghdsg4shy7ay0xy6ywc

and want is

https://www.filepicker.io/api/file/asdf8dsf7asdfasdf.png

for ruins fancy box code use since checking if image in plugin.

my code follows-

$(function(){  filepicker.setkey('mykey');    $("#newimage").on('click',function(){          filepicker.pick({mimetypes: ['image/*'],},function(fpfile) {        var imgu = fpfile.url;        var text=$('#text_editor_textarea');     text.val(text.val()+'[img]'+imgu+'[/img]');    });  }); }); 

i tried other methods of fpfile.url , can't seem find correct way parse out image url , not hosting location url.

filepicker ignore things after + can add want after + in url.

e.g. both resolve properly.

https://www.filepicker.io/api/file/geghdsg4shy7ay0xy6ywc

https://www.filepicker.io/api/file/geghdsg4shy7ay0xy6ywc+whateveryouwant.png


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -