Hello everybody.
I've added a file uploader to the page and set the next acceptance extensions: pdf, docx and xlsx:
<p-fileUpload multiple="multiple" (onSelect)="selectFilesToUpload($event)" (onClear)="clearFilesToUpload()"
accept="application/pdf, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document"
maxFileSize="2000000" class="ui-fileupload-buttonbar"
[showUploadButton]="false" cancelLabel="Clear">
</p-fileUpload>
When I launch the application and open the file uploader I see files with these extensions, but I can't upload them, the control returns an error about incorrect file type.
Does anybody have any ideas about this problem?
Thank you.
PrimeNg 5.0.2 FileUpload does not work with docx/pdf/xlsx file types
-
- Information
-
Who is online
Users browsing this forum: No registered users and 19 guests