Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#drop-area-div").dmUploader({
- url: self.url,
- method: 'POST',
- onInit: function(){
- console.log('Plugin successfully initialized with url: ' + self.url);
- },
- onFallbackMode: function(message){
- console.log('Upload plugin can\'t be initialized: ' + message);
- },
- onNewFile: function(id, file){
- console.log('new file');
- },
- onBeforeUpload: function(id){
- console.log('Starting to upload #' + id);
- },
- onUploadProgress: function(id, percent){
- console.log('progress');
- },
- onComplete: function(){
- console.log('We reach the end of the upload Queue!');
- },
- onFileTypeError: function(file){
- console.log('File type of ' + file.name + ' is not allowed: ' + file.type);
- },
- onFileSizeError: function(file){
- console.log('File size of ' + file.name + ' exceeds the limit');
- },
- onFileExtError: function(file){
- console.log('File extension of ' + file.name + ' is not allowed');
- },
- onFilesMaxError: function(file){
- console.log(file.name + ' cannot be added to queue due to upload limits.');
- },
- onUploadSuccess: function(id, data){
- console.log( data );
- },
- onUploadError: function(id, message){
- console.log('Error trying to upload #' + id + ': ' + message);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement