Upload button for PrimeNG fileUpload property is still shown

UI Components for Angular
Post Reply
gokusen
Posts: 2
Joined: 05 Oct 2021, 19:01

05 Oct 2021, 19:08

The upload button for file upload is still shown when showUploadButton is set to false. Am I doing something wrong here ?. Below is my code :

<p-fileUpload fileLimit=5 showUploadButton=false showCancelButton=false multiple=true name="myfile[]" accept="image/*" (onSelect)="onFileSelect($event)" (onRemove)="onFileRemove($event)"
customUpload="true" maxFileSize="2000000" >

</p-fileUpload>

poyrazus
Posts: 6
Joined: 11 Mar 2021, 12:18

12 Oct 2021, 11:20

Try with brackets around showUploadButton property

Code: Select all

<p-fileUpload [showUploadButton]="false" name="myfile[]"></p-fileUpload>

gokusen
Posts: 2
Joined: 05 Oct 2021, 19:01

24 Dec 2021, 22:00

Thank you. Got it working again

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests