• When images are submitted, the filename is modified if the filename already exists.
    However, it is a case sensitive comparison.
    Could this be changed to a case in-sensitive comparison?

    Currently, if one entrant uploads ‘clouds.jpg’ and another uploads ‘Clouds.jpg’ (ie. upper case ‘C’) the filenames are treated as different.
    This causes a problem when the files are downloaded to Windows, which is case in-sensitive.
    I had to manually change filenames and the CSV files.

    Last year we had the problem occur twice. We had 9 competitions with a total of 1291 entries.
    So, not a huge issue, but it would be good if it didn’t occur.

    I realize we could get around the issue by using Expressions. Eg [~UID]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Josie Stauffer

    (@joanne123)

    A good point. I’ll look into it.

    Plugin Author Josie Stauffer

    (@joanne123)

    I took a quick look. The code, both mine and that used by wordpress, relies on the file_exists function. Since most web hosting is linux-based, that will be case-sensitive. Changing the way it’s done would not be really simple, and could add to the system load.

    We find anyway that it is quite helpful to add the user or competition id to the filename. At the end of a year we often want images from several competitions in one (local) folder, and there duplicate filenames would surely happen if the userid was not included.

    I see that Windows 10 now gives you the ability to make a specific directory case-sensitive. Given that, and my time constraints, I think I’ll leave it as is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicate filenames’ is closed to new replies.