Ivancas
Well-known member
- Affected version
- 2.3.2
This post has a command (php cmd.php dp:migrate-data):
If I try to search for "dp:migrate-data" on the thread no results are returned:
I got an imagegood.svg
storing indata/images/good.svg
in my server which I used for making a node background, I refer it withbackground-image: url(
data/images/good.svg);
inextra.less
.
I can see the image directly byhttps://www.mysite.com/data/images/good.svg
.
Then for testing purpose, I just tried to move the image to R2 with the commandphp cmd.php dp:migrate-data
and it's a success. Deleted the original image.
Then change the line inextra.less
tobackground-image: url(https://data/mysite.com/images/good.svg)
. The image doesn't show up, just showing a blank space. If I go tohttps://data/mysite.com/images/good.svg
directly by the browser, I can see an SVG file, but not the picture, just the SVG codes.
So what's that mean? Cloudflare R2 won't render the SVG to an image? It's ok if I put all background images in local server as it won't expand to a very large number. I just want to know the reasons. Thanks.
If I try to search for "dp:migrate-data" on the thread no results are returned: