如何从MongoDB中的URL填充Strapi中的图像?

时间:2019-07-16 11:56:14

标签: strapi

我已将列出产品的json文件导入到Mongodb中,并在Strapi中为我的产品创建了内容类型。我有一个图片网址数组,只能以json的形式添加到我的内容类型中。 Strapi是否可以从这些URL中提取图像并填充图像类型字段?

URL:

   "Images": [
        {
            "Number": 1,
            "FullPath": "https://images.trader.uk/Images/18/1803/18032/180329160440003/180329160440003-1.jpg",
            "ThumbPath": "https://images.trader.uk/Images/Thumbnails/180329160440003-1-120x120.jpg"
        },
        {
            "Number": 2,
            "FullPath": "https://images.trader.uk/Images/18/1803/18032/180329160440003/180329160440003-2.jpg",
            "ThumbPath": "https://images.trader.uk/Images/Thumbnails/180329160440003-2-120x120.jpg"
        },
        {
            "Number": 3,
            "FullPath": "https://images.trader.uk/Images/18/1803/18032/180329160440003/180329160440003-3.jpg",
            "ThumbPath": "https://images.trader.uk/Images/Thumbnails/180329160440003-3-120x120.jpg"
        },
        {
            "Number": 4,
            "FullPath": "https://images.trader.uk/Images/18/1803/18032/180329160440003/180329160440003-4.jpg",
            "ThumbPath": "https://images.trader.uk/Images/Thumbnails/180329160440003-4-120x120.jpg"
        }
    ],

0 个答案:

没有答案