File Upload custom button for <p-fileupload> ?

UI Components for Angular
Post Reply
jkanamarlapudi
Posts: 1
Joined: 13 May 2019, 21:36

13 May 2019, 21:42

Somebody please let me know , how to create custom Upload button for <p-fileupload>. Or please let me know how to enable and disable Upload button.

yigitfindikli
Posts: 335
Joined: 08 Aug 2018, 14:09

31 May 2019, 13:23

jkanamarlapudi wrote:
13 May 2019, 21:42
Somebody please let me know , how to create custom Upload button for <p-fileupload>. Or please let me know how to enable and disable Upload button.
You can use disabled property like this;

Code: Select all

    <p-fileUpload [disabled]="yourCondition" mode="basic" name="demo[]" url="./upload.php" accept="image/*" maxFileSize="1000000" (onUpload)="onBasicUpload($event)"></p-fileUpload>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests