Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nzmattman's avatar

Upload image on select

Hi team.

I am wondering if it is possible to be able to upload an image after you select it from the find / explorer before actually saving / updating the resource. Is that possible?

I have this code in my Resource for the image

Image::make(__('Icon'), 'icon_path')
                ->disk('s3.assets')
                ->path('icons')
                ->thumbnail(function ($value) {
                    return $value ? Storage::disk('s3.assets')->temporaryUrl($value, now()->addMinutes(5)) : null;
                })->preview(function ($value) {
                    return $value ? Storage::disk('s3.assets')->temporaryUrl($value, now()->addMinutes(5)) : null;
                })
                ->required()
                ->acceptedTypes('.svg'),

a bonus would also to have it show the thumbnail as well.

0 likes
2 replies
jlrdw's avatar

You could upload to a certain folder, and move it later if needed.

nzmattman's avatar

hey @jlrdw its more i want it to auto upload as soon as I have selected a file. The where it uploads to is find as it is

Please or to participate in this conversation.