• Resolved Cameleweb

    (@cameleweb)


    Hi!
    Is there a way to keep the original filename in the Title field when uploading a file, before the clean image plugin changes the filename?
    For exemple, I have this file : Album XYZ from artist ABC.mp3
    Your plugin will change the filename to something like album-xyz-from-artist-abc.mp3, but I need to keep “Album XYZ from artist ABC” in the Title field.
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Emil Gustafsson

    (@gesen)

    Hi!

    I will look into this. I’m hoping to do some work on the plugin in January, and maybe I can add support for this then.

    Hi @cameleweb
    For my needs I have created a very simple plugin that do what you want and more:
    – It autofill Title, Description and ALT fields with in a clean way.

    Exemple:
    Say you have this dirty image filename: ‘toi & Moi ! c’est L’e?te? “sunny” ?company.jpg’
    (Yes, it’s in French because I’m French and I my needs was to have a pretty filename but also all my Description, Title and ALT filed to be automatically fill.)

    So what are the results with my plugin:
    – image filename will change to : ‘toi-et-moi-c-est-l-ete-sunny-copyright-company.jpg’
    – but Description, Title and ALT fieds will be filled with: ‘Toi & moi ! c’est l’e?te? “sunny” ?company’

    You can download it here if you want: https://www.pascal-bourhis.net/telechargements

    I made it quickly this morning and do not have the time to give more documentation about how you can modify it by your self, but I will, and maybe push it to WordPress repo.

    Thanks

    Plugin Contributor Emil Gustafsson

    (@gesen)

    Hi @cameleweb

    I have now added support for this in version 1.2. Thanks for your feedback!

    Thread Starter Cameleweb

    (@cameleweb)

    Thanks!!
    I still have one problem… when there are single quote (‘) in a file name, I’ve got an HTTP error.

    Plugin Contributor Emil Gustafsson

    (@gesen)

    @cameleweb What happens to the upload if you disable the plugin? I’ve tried recreating this error myself but it’s working for me.

    Plugin Contributor Emil Gustafsson

    (@gesen)

    @cameleweb …and also, what is the filename before uploading?

    Thread Starter Cameleweb

    (@cameleweb)

    This is an example : 2- Nul n’est comme toi – Jessica Dorsey.mp3

    I disabled the plugin and got the same error.

    Plugin Contributor Emil Gustafsson

    (@gesen)

    Alright, if you get the same error when the plugin is disabled then the error is not related to the plugin. Maybe your browser is not very happy with the filename. I’m using Safari on a Mac and it’s working fine.

    Thread Starter Cameleweb

    (@cameleweb)

    Ok, then I’ll search that particular error on Google. Thanks for you help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Title VS filename’ is closed to new replies.