Skip to content

PKCS12 file type validation not working #19

@pedrollmatias

Description

@pedrollmatias

Hi,

I'm trying to make my angular filepond accepts only pkcs12 (.pfx extension) files using filepond-plugin-file-validate-type. The expected behaviour is that when the dialog to select file opens, only .pfx files would be listed. However, no files are displayed.

I'm doing in this way:

TS

    @ViewChild('myPond', { static: false }) myPond: any;

    pondOptions = {
        acceptedFileTypes: 'application/x-pkcs12'
    }

html

<file-pond #myPond 
    [options]="pondOptions" 
    (onaddfile)="pondHandleAddFile($event)" 
    (onremovefile)="showPasswordSection = false">
</file-pond>

It's important to say that another file types validation such as image/* works perfectlly.

I'm using Angular 8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions