Native JS uploader of the file?


You need to tie ajax loader file in the tinyMCE editor. The plugin created, but the jquery loaders with an editor conflict. It is necessary to disable some script editor and loader starts to work. Therefore we need a native version Uploader. Prompt implementation?
October 8th 19 at 00:15
2 answers
October 8th 19 at 00:17
In its simplest version it looks something like this

var form = document.getElementById("form"),
var http = new XMLHttpRequest();"POST", '/attach');
xhr.send(new FormData(form));

xhr of course replace http or Vice versa. - Akeem.Cremin68 commented on October 8th 19 at 00:20
You still have to add fields to a form
var form=new FormData();
- frieda.Huel commented on October 8th 19 at 00:23
October 8th 19 at 00:19
no, the file Manager I have. I need to upload the same file for other needs. - Akeem.Cremin68 commented on October 8th 19 at 00:22

Find more questions by tags TinyMCEjQueryJavaScript