Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Automatically rename uploaded images with blueprint field values

theme

Started by Benjamin 6 years ago · 0 replies · 852 views
6 years ago

Hello,

For a multi file upload field, I found that we can use random_name: true, which renames each file with 15 characters long random string .

But is there a way to automatically rename uploaded images with values from the blueprint fields and add a numeric sequence?

For example let's say I have an image file named "badly named image with spaces (23).jpg", is it possible to apply the following file naming rule?

[PageTitle]-[PageCustomField]-[NumericSequence].jpg

👍 1

Suggested topics

Topic Participants Replies Views Activity
Forms & Blueprints · by TomW, 3 weeks ago
3 277 3 weeks ago
Forms & Blueprints · by Japhy, 1 month ago
2 526 1 month ago
Forms & Blueprints · by FrViPofm, 2 months ago
5 522 2 months ago
Forms & Blueprints · by Ton Haarmans, 6 years ago
13 2515 9 months ago
Forms & Blueprints · by Hugo Oliveira, 10 months ago
0 958 10 months ago