I'm using the AS API - and uploading images for groups in my module. I'm passing along the HttpPostedFile to the Journal API AddPhoto. Thing is - photos are not always being renamed if the name exists.
For example - a user could have 2 completely different images but both are name mycar.jpg --- The first one gets uploaded and keeps the name mycar --- when the second one gets uploaded - it's not being renamed mycar(2).jpg - but is also simply mycar.jpg
In my tests - I cannot recreate the issue as everything is being renamed correctly - but looking in the activesocial_Files table and searching for the Filename - I see there's actually 5 instances of that exact name. The only difference is the Description - which is passed by my code which is the date the picture was taken.
So - in my clients case - he uploads his photo - but sees a different one shown (same name) - which ever was put there first.
Could I be missing a setting that I dont' see that automatically renames photos? Or is this just in the Journal API?
Thanks for your help.