Closed amiranagram closed 5 months ago
v3.2.63
v3.3.0
PHP 8.3.0
When using s3 disk, plugin saves the wrong path. With following config:
s3
TiptapEditor::make('content') ->label(__('Content')) ->required() ->disk('s3') ->directory('blog') ->output(TiptapOutput::Html) ->columnSpan([ 'sm' => 2, ]),
just uploading an image and saving the resource produces the following content:
content: "<p><img src="/https://bucket.fra1.digitaloceanspaces.com/blog/3608d17f-26a4-4099-bbf1-902f103d00bf.png" alt="image" width="1386" height="93"></p>",
Notice the leading / which causes browsers to prepend app domain to it.
/
Save content as:
content: "<p><img src="https://bucket.fra1.digitaloceanspaces.com/blog/3608d17f-26a4-4099-bbf1-902f103d00bf.png" alt="image" width="1386" height="93"></p>",
Have an s3 bucket, configure it in the Laravel app, and use s3 as file upload disk in TipTap plugin.
No response
Publish the config and set 'use_relative_paths' => false,
'use_relative_paths' => false,
My bad, thanks for the prompt response.
Filament Version
v3.2.63
Plugin Version
v3.3.0
PHP Version
PHP 8.3.0
Problem description
When using
s3
disk, plugin saves the wrong path. With following config:just uploading an image and saving the resource produces the following content:
Notice the leading
/
which causes browsers to prepend app domain to it.Expected behavior
Save content as:
Steps to reproduce
Have an s3 bucket, configure it in the Laravel app, and use s3 as file upload disk in TipTap plugin.
Reproduction repository
No response
Relevant log output
No response