Skip to content

Commit b38e63e

Browse files
committed
dev-demo: add previewUrl for upload plugin in cars resource
AdminForth/1747/here-we-should-not-use-localho
1 parent 6e33626 commit b38e63e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

dev-demo/resources/cars_resources/carsResourseTemplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ export default function carsResourseTemplate(resourceId: string, dataSource: Car
341341
`${dataSource}/car_images/cars_promo_images_generated/${originalFilename}_${Date.now()}.${originalExtension}`,
342342
preview: {
343343
maxShowWidth: "300px",
344+
previewUrl: ({filePath}) => `https://tmpbucket-adminforth.s3.eu-central-1.amazonaws.com/${filePath}`,
344345
},
345346
generation: {
346347
countToGenerate: 2,

0 commit comments

Comments
 (0)