Files Module Won't accept CSV

sumentuten - 3 months ago

I've listed csv in the allowed file extensions of my Documents Folder but whenever I upload my csv file it throws an error: local.ERROR: exception 'Exception' with message 'The file must be a file of type: pdf, docx, csv.'

Tried docx and pdf and everything worked fine. Anyone knows what may cause this problem and how i can fix this? Cheers!

ryanthompson - 3 months ago

I think this depends on how your server interprets the file. Try researching the mime validation method for Laravel and mime types cause that's what this uses right now. Will be changing it soon though cause of this very same issue.

Will soon be based on extensions only.

ryanthompson - 3 months ago

What's the file name of your CSV?