function dropZone() {
    return function(scope, element, attrs) {
        element.dropzone({
            url: "/upload",
            maxFilesize: 100,
            paramName: "uploadfile",
            maxThumbnailFilesize: 5,
            init: function() {
                scope.files.push({file: 'added'});
                this.on('success', function(file, json) {
                });
                this.on('addedfile', function(file) {
                    scope.$apply(function(){
                        alert(file);
                        scope.files.push({file: 'added'});
                    });
                });
                this.on('drop', function(file) {
                    alert('file');
                });
            }
        });
    }
}
/**
 * dropZone - Directive for Drag and drop zone file upload plugin
 */
Directive for Drag and drop zone file upload plugin
Directive for Drag and drop zone file upload plugin
function dropZone() {
    return function(scope, element, attrs) {
        element.dropzone({
            url: "/upload",
            maxFilesize: 100,
            paramName: "uploadfile",
            maxThumbnailFilesize: 5,
            init: function() {
                scope.files.push({file: 'added'});
                this.on('success', function(file, json) {
                });
                this.on('addedfile', function(file) {
                    scope.$apply(function(){
                        alert(file);
                        scope.files.push({file: 'added'});
                    });
                });
                this.on('drop', function(file) {
                    alert('file');
                });
            }
        });
    }
}
function dropZone ( ) { return function ( scope , element , attrs ) { element . dropzone ( { url : "/upload" , maxFilesize : 100 , paramName : "uploadfile" , maxThumbnailFilesize : 5 , init : function ( ) { scope . files . push ( { file : 'added' } ) ; this . on ( 'success' , function ( file , json ) { } ) ; this . on ( 'addedfile' , function ( file ) { scope . $apply ( function ( ) { alert ( file ) ; scope . files . push ( { file : 'added' } ) ; } ) ; } ) ; this . on ( 'drop' , function ( file ) { alert ( 'file' ) ; } ) ; } } ) ; } }
dropZone - Directive for Drag and drop zone file upload plugin
dropZone - Directive for Drag and drop zone file upload plugin