custom file uploader
-
Hi all,
I want to upload video’s to vimeo using the wp media library.
I want to skip to local upload and upload straight to vimeo.To that I want to replace the wordpress uploader if a video is uploaded.
I tried to run this code:wp.Uploader.queue.bind('add',function(model){ if(model.attributes.file.type.split("/")[0] == 'video'){ //upload to vimeo straight away //clear queue wp.Uploader.queue._reset(); wp.Uploader.queue.remove(model) model.clear(); model.destroy(); } });
This results in an empty queue but the file is still uploaded to my webserver.
Any ideas?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘custom file uploader’ is closed to new replies.