Skip to content

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

Open
@davemuir

Description

@davemuir

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',

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmingChecking if the issue can be reproduced.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions