Closed wkaminski closed 6 years ago
When I use dmUploader 0.1 manually (importing .js file) - it's working fine.
worry , I am on holiday abroad. don't have any idea.
On Mar 29, 2017 11:14 AM, "Wojciech Kamiński" notifications@github.com wrote:
Hi,
I am using uploader installed with npm. Uploader gets initiated properly (onInit callback fires). When I choose file - onNewFile callback fires. But nothing else gets fired. File is not being uploaded. No errors (I hooked all possible callbacks) and file not getting sent :/
In different project, where I use uploader installed manually by including .js files - it's working great.
Any ideas
$("#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); } });
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danielm/uploader/issues/56, or mute the thread https://github.com/notifications/unsubscribe-auth/AKiMTlwrTijZnbqoI1kvUReqERhzawUTks5rqhLJgaJpZM4MspJR .
Hey,
The code you provided seems aright , I haven't used a fresh install using npm in a while, but I have gotten a few reports from people having swim issues from using the minified version which may be the case here. The project is getting a little love the next couple days so until then I won't be able to update it
@danielm ok, no worries. I am using manual .js files for now. I will check npm version in few days.
Thanks! ;)
Closing the issue.
With the newest release the plugin can be installed directly from NPM using the oficial package:
npm install dm-file-uploader
--save
Hi,
I am using uploader installed with npm. Uploader gets initiated properly (onInit callback fires). When I choose file - onNewFile callback fires. But nothing else gets fired. File is not being uploaded. No errors (I hooked all possible callbacks) and file not getting sent :/
In different project, where I use uploader installed manually by including .js files - it's working great.
Any ideas what I am doing wrong? :( https://pastebin.com/UqqY1CwC