p-fileUpload crash chrome on mac os

UI Components for Angular
Post Reply
Link911
Posts: 1
Joined: 16 Mar 2023, 18:19

16 Mar 2023, 18:54

we use NGPrime

version 5.2.7.
When u click on Attach button, it call p-fileUpload component and it crach whole browser.

Need some help here.
-----------
EXAMPLE

<div class="parent">
<div *ngIf="isUILocked" id="cover-spin"></div>
<p-fileUpload name="demo[]" url="{{getTargetURL()}}" (onBeforeUpload)="onBeforeUpload($event)"
(onUpload)="onUpload($event)" accept="{{filesAllowed}}" maxFileSize="10485760" auto="auto"
[chooseLabel]="'Attach' | gLi18n" invalidFileSizeMessageSummary="" invalidFileTypeMessageDetail="">
<ng-template pTemplate="content">


<div *ngIf="!uploadedFiles.length" style="color:#808080" gLi18n>Drop attachments here</div>
<ul *ngIf="uploadedFiles.length">
<li *ngFor="let file of uploadedFiles">{{file.name}} - {{file.size/1000}} KB <button pButton
(click)="deleteAttachment(file)" icon="fa-times"></button></li>
</ul>

</ng-template>

</p-fileUpload>
</div>


------------------
Package.json
{
"name": "chat",
"version": "0.0.0",
"license": "MIT",
"angular-cli": {},
"scripts": {
"start": "ng serve",
"devbuild": "ng build -w",
"build": "ng build -prod -aot & ncp ./dist/index.aspx ./dist/comIndex.aspx & node makeCom2Index.js",
"lint": "tslint \"src/**/*.ts\"",
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor"
},
"private": true,
"dependencies": {
"@angular/animations": "5.2.10",
"@angular/common": "5.2.10",
"@angular/compiler": "5.2.10",
"@angular/core": "5.2.10",
"@angular/forms": "5.2.10",
"@angular/http": "5.2.10",
"@angular/platform-browser": "5.2.10",
"@angular/platform-browser-dynamic": "5.2.10",
"@angular/router": "5.2.10",
"@fullcalendar/bootstrap": "4.2.0",
"@fullcalendar/core": "4.2.0",
"@fullcalendar/daygrid": "4.2.0",
"@fullcalendar/interaction": "4.2.0",
"@fullcalendar/list": "4.2.0",
"@fullcalendar/moment": "4.2.0",
"@fullcalendar/moment-timezone": "4.2.0",
"@fullcalendar/rrule": "4.2.0",
"@fullcalendar/timegrid": "4.2.0",
"@types/jquery": "^3.3.31",
"bootswatch": "^4.1.3",
"chart.js": "2.5.0",
"ckeditor": "^4.9.2",
"coa": "2.0.2",
"core-js": "2.4.1",
"date-fns": "^1.29.0",
"font-awesome": "4.7.0",
"jquery": "^3.4.1",
"moment": "^2.22.2",
"ms-signalr-client": "2.2.5",
"ng-emoji-picker": "^1.2.2",
"ng2-ckeditor": "1.1.8",
"primeng": "5.2.7",
"primeui": "4.1.15",
"quill": "1.2.3",
"roboto-fontface": "0.9.0",
"rrule": "^2.6.0",
"rxjs": "5.5.6",
"string-hash": "^1.1.3",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "5.2.10",
"@types/jasmine": "2.5.51",
"@types/node": "6.0.60",
"@types/q": "1.5.1",
"codelyzer": "2.0.1",
"jasmine-core": "2.5.2",
"jasmine-spec-reporter": "2.7.0",
"karma": "1.3.0",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-jasmine": "1.0.2",
"karma-remap-istanbul": "0.2.1",
"ncp": "2.0.0",
"protractor": "5.1.0",
"replace-in-file": "4.1.3",
"ts-node": "1.7.0",
"tslint": "4.5.0",
"typescript": "^3.7.0",
"webdriver-manager": "10.2.8"
}
}

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 47 guests