• Hi all, I have tried to upload an image on the frontend using various plugins. The filename of the image is image#3.jpg (notice the number sign); while the file can upload, it appears broken because of the # sign. I can upload via the wp-admin dashboard without a problem as the special character is stripped from the filename to image3.jpg and is visible in the media library. But when I upload via a plugin, the filename keeps the # or other illegal character and appears broken in the media library.

    I have already tried various filename upload sanitizer plugins but none of them seems work. At best, some will recognize the special character but add a sting of random characters in place of the dot before filename while leave the # there. For example, image#3.jpg becomes something like: image#3-e5EpiRItp7ricujpg

    Is there a way to get around this problem? Thanks.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Find an upload plugin that you like where the author is actively supporting their plugin, evidenced by recent meaningful responses to support questions. Describe the problem to them and ask them to better sanitize filenames. It would solve your problem and improve their plugin. Seems like a win-win to me.

    The only other alternatives would be to develop your own plugin or hack an existing open source plugin to do better sanitation.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem Uploading Images With Special Characters’ is closed to new replies.