This is a follow on from How can I control the filenames of files uploaded via SAEF/Safecracker using Safecracker File in a Matrix? but is a different topic so I thought I should start a new question for future reference.
I have a Matrix field that contains a SafeCracker File field.
Images are uploaded to this field.
It appears that if I upload 2 images with filenames that are the same, but of different case, such as TEST.jpg and test.jpg then both images upload fine.
In the back end, on the entry form, the Matrix is displayed correctly with each image being shown.
However, when outputting the images on the front end the case of the file gets mixed up and I would see test.jpg output twice. The other file TEST.jpg is ignored.
Here is my test code. My Matrix field is called {photos} the Safecracker field within that is called {file}
{photos}
<p>Row: {row_id}</p>
<p>File: {file}</p>
{/photos}
Using the example files above I would expect to see.
Row: 1
File: /images/test.jpg
Row 2
File: /images/TEST.jpg
But in fact I see
Row: 1
File: /images/test.jpg
Row 2
File: /images/test.jpg
Since my server is case sensitive it is possible for both of these files to exist so it's causing a problem when the images are being output and the incorrect image is being shown in some cases.
Is anyone able to shed some light on this or try it out themselves to confirm the problem?