> Forums > Active Social > Integration and API > Not Renaming Images
Last Post 27 Oct 2011 12:20 PM by Andrew Walker. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Andrew Walker
Customers
Andrew Walker
Post Count:44

--
27 Oct 2011 12:20 PM
    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.
    Our Sites that use ActiveSocial:
    BigGameLogic.com - for the serious deer hunter (track deer movement/patterns).
    ForemostBrewing.com - for the homebrewer and winemaker
    ForemostHunting.com - for the avid hunting sportsman
    GameBirdHunts.com - for the upland game bird hunter
    You are not authorized to post a reply.
    > Forums > Active Social > Integration and API > Not Renaming Images
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy