Home > Mobile >  Where can I find the list of acceptable file type with FilePond?
Where can I find the list of acceptable file type with FilePond?

Time:05-21

I have a project with FilePond and I'm trying to have a validation if the file types are not acceptable.

but where can I find the list of the file type that I can use with FilePond.

      <FilePond
        acceptedFileTypes={['image/*', 'application/pdf']}
      />

I found out how to accept the image and pdf but I'm still looking for sample codes to accept the .tiff, .docx, .txt.

Does anybody know how?

It works!

      <FilePond
          acceptedFileTypes={[
          'image/*',
          'application/pdf',
          '.docx',
          'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
          'text/plain',
        ]}
      />

CodePudding user response:

you can check MIME Common types

.tiff => image/tiff

.docx => application/vnd.openxmlformats-officedocument.wordprocessingml.document

.txt => text/plain

  • Related