MG 2.2 Do not write extensions (.jpg, .png, etc.) in the title when uploading

erdis

Member
Hi,

In the media plugin, I don't want the title (.jpg, .png etc.) extensions to be written while uploading.

How can I do that?
 

Attachments

  • screen.webp
    screen.webp
    5.5 KB · Views: 9
Hi,

In the media plugin, I don't want the title (.jpg, .png etc.) extensions to be written while uploading.

How can I do that?
I've been looking at this as our members forget to do it as well, or just don't understand. I "fixed" this recently with SQL.

UPDATE xf_mg_media_item
SET title = left(title,LENGTH(title)-4)
WHERE title LIKE '%.jpg';

I'm now wondering whether I can run that automatically once a week or something :)
 
Back
Top Bottom