-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files not uploading #56
Comments
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" ***@***.***> 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
<#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. |
@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:
|
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
The text was updated successfully, but these errors were encountered: