Not Solved [How To?] put https in imgur js
Not Solved
I have this code 

 /* Lets build a FormData object*/
 var fd = new FormData(); // I wrote about it:
fd.append("image", file); // Append the file
var xhr = new XMLHttpRequest(); // Create the XHR (Cross-Domain XHR FTW!!!) Thank you sooooo much"POST", ""); // Boooom!
xhr.onload = function() {
var code = '' +'https://'+ JSON.parse(xhr.responseText) + '[/img]';
$('#message, #signature, textarea[name*="value"]').data('sceditor').insert(code);
var d = document.querySelector(".sceditor-button-imgur div.imgurup");
d.className = d.className - " imgurup";
// Ok, I don't handle the errors. An exercice for the reader.
xhr.setRequestHeader('Authorization', 'Client-ID '+iclid+'');
/* And now, we send the formdata */

I add https 
' +'https://'+ JSON.parse(xhr.responseText) + '[/img]';

but now the form is https://http://link

how remove http://??

this is js :
Not Solved
Hi AlexanderPep I installed this plugin made sure I changed the address in admin cp on my site hope it helps

Not Solved
Yes...with this plugin works because can make image proxy Big Grin

Forum Jump:

Users browsing this thread: 1 Guest(s)