Skip to content

mime types for .js and .css files are unexpected #6597

@munxar

Description

@munxar

pocketbase: v0.26.0

When I upload a file to a record (with a File field), some file types are not recognized correctly.
E.g. I create a javascript file test.js in vs code and upload it via admin backend in a record, it get's the mime type "text/plain" the same is true for .css files.

If the fields allowed mime types is set to "text/javascript", uploading the file fails with a validation error "validation_invalid_mime_type".

Do I miss something here, or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions