A
A
Arthur Koch2012-04-12 17:23:33
JavaScript
Arthur Koch, 2012-04-12 17:23:33

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

2 answer(s)
S
Stanislav, 2012-04-12
@crackedmind

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));

Z
zenon, 2012-04-12
@zenon

Isn't it ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question