danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

$.getScript load dm-uploader is undefine.. #77

Open LeeXiooo opened 6 years ago

LeeXiooo commented 6 years ago

$.getScript(options.basePath + 'lib/dmuploader/jquery.dm-uploader.min.js') .done(function () { $('#uploader-dragarea').dmUploader({url: 'up.php'}); });

Uncaught TypeError: $(...).dmUploader is not a function

fauzie commented 6 years ago

Me too, default loading via html script tag with jQuery v3.2.1. Showing this error.

SapientHetero commented 6 years ago

Try this $('#drag-and-drop-zone').dmUploader().data() instead of this $('#uploader-dragarea').dmUploader().