Hi,
I would recommend you to upload photos into media library at first (http://devnet.kentico.com/docs/devguide/index.html?creating_media_libraries.htm) and then use
Media selection field type instead of file
Upload file to insert photo into PictureAttributeName field of custom document.
You could then use following method to get URL of the file in transformation
<%# CMS.GlobalHelper.UrlHelper.ResolveUrl(Eval("PictureAttributeName").ToString().Split('?')[0]) %>As a result this method returns link to file.jpg in following format, that is certainly more
SEO friendly:
~/MySite/Media/MyLibrary/file.jpgIt is also necessary to set
Use permanent URLs property to false (
Site Manager -> Settings -> Media Libraries -> Use permanent URLs)
Best regards,
Michal Legen