DigitalOcean Spaces Sync plugin connects your Media Library to a container in DigitalOcean Spaces.
DigitalOcean Spaces同步插件将您的媒体库连接到DigitalOcean Spaces中的容器。
It syncs data from your website to cloud storage
它将数据从您的网站同步到云存储
and replaces links to images (optional).
并替换图像的链接(可选)。
You may keep the media locally (on your server) and make backup copy to cloud storage, or just serve it all
您可以将媒体保留在本地(在服务器上),然后将备份副本复制到云存储中,或者仅将其全部提供
from DigitalOcean Spaces.
来自DigitalOcean Spaces。 p>
In order to use this plugin, you have to create a DigitalOcean Spaces API key.
要使用此插件,您必须创建DigitalOcean Spaces API密钥。 p>
You may now define constants in order to configure the plugin.
您现在可以定义常量以配置插件。
If the constant is defined, it overwrites the value from settings page.
如果定义了常量,它将覆盖设置页面中的值。
Contants description:
内容描述:
– DOS_KEY – DigitalOcean Spaces key
– DOS_KEY – DigitalOcean Spaces键
– DOS_SECRET – DigitalOcean Spaces secret,
– DOS_SECRET – DigitalOcean Spaces机密,
– DOS_ENDPOINT – DigitalOcean Spaces endpoint,
– DOS_ENDPOINT – DigitalOcean Spaces端点,
– DOS_CONTAINER – DigitalOcean Spaces container,
– DOS_CONTAINER – DigitalOcean Spaces容器,
– DOS_STORAGE_PATH – The path to the file in the storage, will appear as a prefix,
– DOS_STORAGE_PATH –存储中文件的路径将显示为前缀,
– DOS_STORAGE_FILE_ONLY – Keep files only in DigitalOcean Spaces or not, values (true|false),
– DOS_STORAGE_FILE_ONLY –是否仅在DigitalOcean Spaces中保留文件,值(true | false),
– DOS_STORAGE_FILE_DELETE – Remove files in DigitalOcean Spaces on delete or not, values (true|false),
– DOS_STORAGE_FILE_DELETE –删除是否删除DigitalOcean Spaces中的文件,值(true | false),
– DOS_FILTER – A Regex filter,
– DOS_FILTER –正则表达式过滤器,
– UPLOAD_URL_PATH – A full url to the files, WP Constant,
– UPLOAD_URL_PATH –文件的完整URL,WP Constant,
– UPLOAD_PATH – A path to the local files, WP Constant
– UPLOAD_PATH –本地文件的路径,WP常量 p>
There is a known issue with the built in WordPress Image Editor, it will not upload changed images.
内置的WordPress图像编辑器存在一个已知问题,它不会上传更改的图像。
Know how to fix this, PR welcome.
知道如何解决此问题,欢迎PR。 p>