Laravel-Backpack / medialibrary-uploaders

MIT License
9 stars 3 forks source link

[Bug] Base64 field doesn't load at all #7

Closed tabacitu closed 1 year ago

tabacitu commented 1 year ago

Bug report

What I did

        CRUD::field('avatar')->type('base64_image')->withMedia([
            'collection' => 'default',
        ]);

What I expected to happen

Create & update page to load. Process to work.

What happened

Create and Update pages throw a big fat error:

CleanShot 2023-02-24 at 16 04 24

Stack trace here: https://flareapp.io/share/x7XjjWYm#F55

What I've already tried to fix it

Nothing. I see this field isn't treated in the switch statement in RegisterMediaLibraryEvents::getUploaderFromFieldType() so no point in going any further. I thought this field was covered by this functionality too... but apparently it's not?!

pxpm commented 1 year ago

base64_image makes no sense at all using with media library or any other upload functions. It's just a plain string for what matters.

It does not load and it will stay thay way as we don't need to do any upload process with the base64 string.