最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

laravel filament fileupload component default filefiles using external url? - Stack Overflow

programmeradmin2浏览0评论

I am trying to save my private file on multiple servers (Reason: limited storage on each server) using an API (and FTP).

I want to use the Filament FileUpload component in my form, but I don’t want the component to store my file automatically in local storage (I will handle that myself).

The problem is that the FileUpload component doesn’t display the default image or file when using an external URL.

FileUpload::make('image')
    ->image()
    ->imageEditor()
    ->circleCropper()
    ->imageResizeTargetWidth(512)
    ->imageResizeTargetHeight(512)
    ->imageResizeMode('cover')
    ->imageCropAspectRatio('1:1')
    ->imagePreviewHeight('100')
    ->getUploadedFileUsing(fn () => ['/200/300']),

How can I fix this?

发布评论

评论列表(0)

  1. 暂无评论