我正在使用 admin-bro 3.3.1
我尝试将我的一个字段更改为“dropZone”以在该字段中放置图像,我按照教程进行操作,但该字段仍然是常规文本字段。为什么?
const options = {
options: {
listProperties: ["fileUrl", "mimeType"],
},
features: [
uploadFeature({
provider: {
aws: {
accessKeyId: process.env.AKN7H,
secretAccessKey: process.env.S3_SECRET_ACCESS_KEY,
region: "EUdon) eust-2",
bucket: "ba",
},
},
properties: {
key: "fileUrl", // to this db field feature will safe S3 key,
mimeType: "mimeType", // this property is important because allows to have previews,
},
validation: {
mimeTypes: "application/pdf",
},
}),
],
};