1
Vote

Images w/ the Same Name will overwrite each other

description

If you upload any images that have the same name as each other (for any post over time), the newest image will overwrite the older. A quick fix for this issue would be:
 
        if (File.Exists(localPrefix + cleanFilename))
            cleanFilename += cleanFilename.Insert(cleanFilename.Length - 5, Guid.NewGuid().ToString());

comments