Answer the question
In order to leave comments, you need to log in
Native JS file uploader?
Hey!
It is necessary to attach the ajax file loader to the tinyMCE editor. The plugin has been created, but the jquery loaders conflict with the editor. It is worth disabling some editor script and the loader starts working. Therefore, a native version of the uploader is needed. Can you suggest an implementation?
Answer the question
In order to leave comments, you need to log in
In its simplest form, it looks like this
var form = document.getElementById("form"),
var http = new XMLHttpRequest();
xhr.open("POST", '/attach');
xhr.send(new FormData(form));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question