-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
$scope.upload progress/success callbacks not working #224
Comments
So how do you know the script is working? |
It is better to send files one by one:
|
what browser do you have this problem with? |
I'm only sending one file, I'm using Chrome and I've got the success function working, just not progress. The app is a MEAN app so I'm using busboy to handle the file server-side. I'm wondering if it's because I'm working locally so the file uploads are going to be instant. Is there a timeout set for the progress callback? |
make sure you include the shim file before angular.js. |
My bad, I didn't include the shim! * facepalm * Is there anyway I can force slug the upload so I can work on a 'progress' script? It's incredibly difficult to work on locally as it's so rapid. |
As bad as you leaky :( |
Same problem, shim file is loaded, but progress callback is not being fired, working on local |
Are you sure it is loaded before Angular ? |
Yes its loaded before This is the file load order:
|
Tried debugging with breakpoints. It is getting loaded, the variable is set to true, but later on gets overridden and becomes undefined again. |
have same issue , progress function is never called , only the promise success , and error functions are invoked right. |
in my case progress and success working on local machine but success not working when connect to server |
Same here, progress function is never called |
I have the same problem. |
I'm having this issue as well, callbacks (particularly in Firefox) are not being called. If I remove the "progress" callback and leave only the success handler it starts working again in FF, but I need to maintain progress. In the code below, the .then() for success is never reached in Firefox. If I remove the .progress() function such that there is only a .then() it seems to start working in FF (without progress).
I'm using ng-file-upload 12.2.12, Typescript (ES6) and webpack. I'm loading ng-file-upload from npm, and it looks like ng-file-upload-all already includes the shim as needed, what am I doing wrong? Because im using ES6 modules its highly likely that angular is getting loaded before the shim/ng-file-upload, do I need to force the loading of ng-file-upload before angular? or just the shim needs to load before angular? |
After further investigation it seems that in Firefox the
Sry about the formatting, not sure why its killing my whitespaces! |
I have the same problem. Anyone fixed this? |
Same problem here still today, shim imported before angular. I have the success callback called but not the progress. I'm wondering if my server is doing something wrong too. EDIT: Got it working, the fault was on angular. Downloaded another version of the script and it worked. No idea why. |
I have the angular-file-upload script and it's posting to my express app which is then saving the file, so the good news is that the script is working... However, for some reason the progress/success callbacks don't seem to be doing anything at all and my developer console just remains blank...?
The text was updated successfully, but these errors were encountered: