question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No complete | done | error event on upload

See original GitHub issue

i use the ngx-admin projekt: https://github.com/akveo/ngx-admin/tree/ng2-admin/src/app/theme/components/baFileUploader

create a component with the example code from the AppHomeComponent but no finished event is called?

image

the difference to you project is the package.json. here my complete json file:

"dependencies": {
    "@agm/core": "1.0.0-beta.2",
    "@angular/animations": "~5.1.0",
    "@angular/common": "~5.1.0",
    "@angular/compiler": "~5.1.0",
    "@angular/core": "~5.1.0",
    "@angular/forms": "~5.1.0",
    "@angular/http": "~5.1.0",
    "@angular/platform-browser": "~5.1.0",
    "@angular/platform-browser-dynamic": "~5.1.0",
    "@angular/router": "~5.1.0",
    "@asymmetrik/ngx-leaflet": "3.0.1",
    "@nebular/auth": "2.0.0-rc.4",
    "@nebular/theme": "2.0.0-rc.4",
    "@ng-bootstrap/ng-bootstrap": "1.0.0-beta.8",
    "@ngx-translate/core": "8.0.0",
    "@ngx-translate/http-loader": "^2.0.0",
    "@swimlane/ngx-charts": "5.2.0",
    "angular2-chartjs": "0.4.1",
    "angular2-toaster": "4.0.1",
    "bootstrap": "4.0.0-beta.2",
    "chart.js": "2.7.1",
    "ckeditor": "4.7.3",
    "classlist.js": "1.1.20150312",
    "core-js": "2.5.1",
    "file-saver": "^1.3.3",
    "font-awesome": "4.7.0",
    "intl": "1.2.5",
    "ionicons": "2.0.1",
    "leaflet": "1.2.0",
    "nebular-icons": "1.0.6",
    "ng2-ckeditor": "1.1.13",
    "ng2-select": "^2.0.0",
    "ng2-smart-table": "1.2.2",
    "ng2-tree": "2.0.0-rc.4",
    "ngx-echarts": "2.0.0",
    "ngx-uploader": "^4.2.1",
    "normalize.css": "6.0.0",
    "pace-js": "1.0.2",
    "roboto-fontface": "0.8.0",
    "rxjs": "5.5.5",
    "tinymce": "4.5.7",
    "typeface-exo": "0.0.22",
    "web-animations-js": "2.2.5",
    "zone.js": "0.8.18"
  },
  "devDependencies": {
    "@angular/cli": "1.6.3",
    "@angular/compiler-cli": "~5.1.0",
    "@angular/language-service": "~5.1.0",
    "@compodoc/compodoc": "1.0.1",
    "@types/d3-color": "1.0.5",
    "@types/file-saver": "^1.3.0",
    "@types/jasmine": "2.5.54",
    "@types/jasminewd2": "2.0.3",
    "@types/leaflet": "1.2.3",
    "@types/node": "6.0.90",
    "codelyzer": "4.0.2",
    "conventional-changelog-cli": "1.3.4",
    "husky": "0.13.3",
    "jasmine-core": "2.6.4",
    "jasmine-spec-reporter": "4.1.1",
    "karma": "1.7.1",
    "karma-chrome-launcher": "2.1.1",
    "karma-cli": "1.0.1",
    "karma-coverage-istanbul-reporter": "1.3.0",
    "karma-jasmine": "1.1.0",
    "karma-jasmine-html-reporter": "0.2.2",
    "npm-run-all": "4.0.2",
    "protractor": "5.1.2",
    "rimraf": "2.6.1",
    "stylelint": "7.13.0",
    "ts-node": "3.2.2",
    "tslint": "5.7.0",
    "tslint-language-service": "0.9.6",
    "typescript": "2.5.3"
  }

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
sgyycommented, Mar 2, 2018

it’s a bug of pace-js remove "../node_modules/pace-js/pace.min.js", from .angular-cli.json

3reactions
jkuricommented, Mar 14, 2018

I think you should hide it as

[class.is-hidden]="!files.length && !uploadCompleted"

and define class .is-hidden in styles as display: none; or visibility: hidden;

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Upload] complete event is not fired when a file fails restrictions
When the file list contains a file that does not match the restrictions, the complete event is not fired when all other active...
Read more >
Javascript CORS upload always finishing with an error event
The status is always 0 but the file do gets uploaded, the progress works fine and the server returns a 201 CREATED ....
Read more >
complete - API Reference - Kendo UI Upload - Documentation
Fires when all active uploads complete—either successfully or with errors. The complete event fires only when the Upload is in async mode. Example....
Read more >
XMLHttpRequest.upload - Web APIs - MDN Web Docs
The XMLHttpRequest upload property returns an XMLHttpRequestUpload object that can be observed to monitor an upload's progress.
Read more >
Review events and errors using Event Viewer | Microsoft Learn
Event ID Message Description 2 Microsoft Defender for Endpoint service shutdown. Occurs when the device is shut... 59 Starting command: %1 Starting response command ex... 60...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found