• Resolved Mr Tibbs

    (@mtibesar)


    <<< Added Table IX-D19: Sanitize filenames during import/upload. Do not switch this off unless you really need this. >>>

    Hi Jacob,

    Could you please clarify what you mean by “sanitize”.

    As you know, we use the filenames for our photo captions, and I don’t understand what you mean by “sanitize”.

    Thank you very much!

    Marcus
    tibesar.com

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Sanitize filenames means remove all kind of illegal and unhandy characters from the name that might give problems with certain server operating systems.

    Examples:
    – the space character that is not allowed in filenames on certain os’s and also may result in incomplete links.
    – accented characters like á ö è that may be illegal in certain os’s.
    – ()/{} characters
    – etc etc.
    Just try it, it won’t blow up your system; you may be glad with the untouched spaces etc.

    Thread Starter Mr Tibbs

    (@mtibesar)

    I see.

    I have a lot of relatives in Belgium that use accented characters so this sanitization will be very beneficial to our filenames and captions.

    Also, most of our filenames have spaces in them (versus dashes or underscores) so this is especially beneficial! Thank you!

    Does this sanitize all existing filenames or just the new filenames that are uploaded?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Only the new ones. Pls test it, i do not know if it works under all cercumstances (front-end/backend uploads and import)

    Thread Starter Mr Tibbs

    (@mtibesar)

    Will do Jacob.

    I’ll follow up in a week or two when I’ve completed testing.

    Thank you very much!

    Marcus
    tibesar.com

    Thread Starter Mr Tibbs

    (@mtibesar)

    Today I tested it on the front-end using the photo upload widget. I placed dashes between all words of the filename. It stripped the dashes correctly! I will update further as I use the backend uploading as well.

    Thread Starter Mr Tibbs

    (@mtibesar)

    Today, I tested the Sanitize Filenames on the backend using Photo Albums – Album Admin – Create New Empty Album – Upload to this Album. It stripped the dashes correctly!

    Next I will test the Photo Albums – Upload Photos and report findings soon…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Sanitize filenames’ is closed to new replies.