pqina / vue-filepond

🔌 A handy FilePond adapter component for Vue
https://pqina.nl/filepond
MIT License
1.92k stars 128 forks source link

Try to handle font files #214

Closed nmannitz closed 3 years ago

nmannitz commented 3 years ago

Hey guys,

i'll use vue-filepond to upload fonts and other files to my vue project. Unfortunately, the type (MIME-Type) ist not correctly detected. The value of type is an empty string.

I use the filepond-plugin-file-validate-type plugin but i think it don't work correctly with font types. I've try to use the soluton below, but i don't know how i can use this with vue-filepond: https://pqina.nl/filepond/docs/api/plugins/file-validate-type/#custom-type-detection.

Can you help me please or did you have an idea?

I've try to upload ttf and otf files.

rikschennink commented 3 years ago

We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.

Your issue can be classified as an integration question or a question about specific features of FilePond we ask you kindly to submit it on Stack Overflow. We regularly scan Stack Overflow for questions and will answer as soon as possible.

FYI the kind of file doesn't matter, you will have to use extension or other file data to return a type.

nmannitz commented 3 years ago

Okay thanks, i've create an question on stackoverflow: https://stackoverflow.com/questions/69077019/try-to-handle-font-files-with-filepond