0
ipservant created
Hello,
We are trying to translate the "Choose" label in p-fileupload with the l() function, can you please advise how to do that properly? Thanks in advance!
<div class="uploadArea">
<!--<img src="{{iDfamilyImage}}" width="200" height="200" class="img-thumbnail img-rounded" />-->
<p-fileUpload multiple="true"
id="DefaultFileUploadFileInput"
name="DefaultFileUploadFileInput[]"
[url]="uploadUrl"
accept=".tiff,.jpeg,.jpg,.tif,.png"
showUploadButton="false"
showCancelButton="false"
maxFileSize="16000000"
(onUpload)="onUpload($event)"
(onError)="onError($event)"
(onBeforeUpload)="onBeforeUpload($event)"
(onBeforeSend)="onBeforeSend($event)"
dragDropSupport="true"
auto="true">
</p-fileUpload>
</div>
```
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
1
Try use
labelattribute.<p:fileUpload label=l('choose') .../>https://primefaces.github.io/primefaces/8_0/#/components/fileupload?id=attributes
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thank you, that worked!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)