How to automatically rename imagefile on upload?

If you upload image file using “Page Media” field in Admin plugin, then it would upload with original name (if you had spaces, cyrillic characters, etc).

How can we automatically rename it? Just as using file field option: random_name: true

@heihachi88 did you find a solution for this issue?