Skip to content

Error 403 when using gallery feature on elFinder (Someone attempted to tamper with mime types in elfinder popup. The attempt was blocked.) #66

@diereysaa

Description

@diereysaa

Hi,
I'm opening this thread even though similar issues were solved here and here.

When I try to open the gallery on my project, it shows a 403 with the main project window:
image

The HTTP request is
https://***/admin/elfinder/popup/featured_image_select and that returns a 403.

Also, we're seeing

[2025-01-15 19:55:34] staging.ERROR: Someone attempted to tamper with mime types in elfinder popup. The attempt was blocked.

on the logs.

We have the latest backpack versions on the server:

backpack/basset                               1.3.6   Dead-simple way to load CSS or JS assets only once per page, when using Laravel 10+.
backpack/crud                                 6.7.47  Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.
backpack/filemanager                          3.0.10  Backpack admin interface for files and folder, using elFinder
backpack/generators                           4.0.7   Generate files for laravel projects
backpack/permissionmanager                    7.2.1   Users and permissions management interface for Laravel 5 using Backpack CRUD.
backpack/pro                                  2.2.31  Operations, Fields, Columns, Filters and Widgets for not-so-simple admin panels.
backpack/theme-coreuiv4                       1.1.5   UI for Backpack v6 that uses CoreUI v4 and Bootstrap v5.
backpack/theme-tabler                         1.2.17  UI for Backpack v6 that uses Tabler and Bootstrap v5.

The field that launches the gallery popup is this:

        CRUD::field([   // Browse
            'name'  => 'featured_image_select',
            'label' => 'Seleccionar imagen',
            'type'  => 'browse-custom',
            'wrapper' => ['class' => 'form-group col-md-6'],
        ]);

Note: I've even tried with 'type' => 'browse' but the results are the same.

I even tried to setup the default filemanager, and it works just fine for uploads, browsing, etc...
image

Could it be a folders permission issue? (I'm asking this because on another server the gallery was working fine)

I think it's important to mention that our project is using laravel multidomain as well (gecche/laravel-multidomain 11.1)

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions