Page 1 of 1

File Upload custom button for <p-fileupload> ?

Posted: 13 May 2019, 21:42
by jkanamarlapudi
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.

Re: File Upload custom button for <p-fileupload> ?

Posted: 31 May 2019, 13:23
by yigitfindikli
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>