laravel-filemanager icon indicating copy to clipboard operation
laravel-filemanager copied to clipboard

new Valid Mime types and should validate false not working from config

Open davemuir opened this issue 7 years ago • 4 comments

When I try to upload something other than a standard image file, it looks like no matter what mime type is specified in 'valid_file_mimetypes', the uploader will not complete the upload. I either get "invalid upload request" or "You can't upload files of this type."

If I can override the validation for now by setting 'should_validate_mime' => false (default), then that is a start, but this config option does not seem to do that.

In a more specific sense, my goal is to have the file uploader only handle .obj and .fpx files. Adding these to the valid_file_types did not work either: 'text/plain', 'application/vnd.fpx', 'application/vnd.netfpx', 'image/x-fpx', 'image/fpx', 'image/vnd.fpx', 'image/vnd.fastbidsheet', 'application/octet-stream', 'application/vnd.ms-pkistl', 'application/x-pkcs7', 'application/x-sh', 'application/x-bsh', 'application/wavefront-obj', 'application/object',

davemuir avatar Mar 07 '18 19:03 davemuir

Same here! I want to upload .html files, I tried this process, doesn't work.. help please!

stefichu avatar Mar 29 '18 03:03 stefichu

SAME HERE

pandeptwidyaop avatar May 28 '18 07:05 pandeptwidyaop

me too, may be hacker upload .php file to server and.... :(

host9999 avatar Apr 27 '20 07:04 host9999

Seems like this a long-running problem. Has anyone found a solution? Thanks

richievc avatar Apr 17 '21 19:04 richievc