What's the best way to store S3 image URI to work with the file upload field?

For my file upload field to render a thumbnail of a previously stored image, how should I be storing the file URI? A full endpoint type path (e.g. http://example.s3-website.eu-west-2.amazonaws.com/image/file/Screen_Shot_2019-03-20_at_11_57_05.png) or a relative path (e.g. image/file/Screen_Shot_2019-03-20_at_11_57_05.png) ?

The resources are private, so will need presigned urls' - I assume the visibility method can take care of this?

My form field component looks like this;

FileUpload::make('logo_path')
            ->label('Logo')
            ->disk('s3')
            ->visibility('private')
            ->image();
Was this page helpful?