Image path for displaying on a user profile <p>I have managed to find the code I needed but just have some questions that need answering so that I understand as I am a little confused. I understand that the below code allows me to upload an image but what I cant get my head around is how i would display the image for a profile picture, by this I mean what path would I use to locate the image for the individual user. I just need this explaining to me so that I understand it</p> <p>Many Thanks the code I am using for uploading the image is below</p> <pre><code>&lt;!--- set the full path to the images folder ---&gt; &lt;cfset mediapath = expandpath('./images')&gt; &lt;!--- set the desired image height ----&gt; &lt;cfset thumbsize = 75&gt; &lt;!--- set the desired image width ---&gt; &lt;cfset imagesize = 320&gt; &lt;cfif structKeyExists(form,"fileUpload") and len(form.fileUpload)&gt; &lt;cffile action="upload" filefield="FileUpload" destination="#MediaPath#" nameconflict="makeunique"&gt; &lt;!--- read the image ----&gt; &lt;cfimage name="uploadedImage" source="#MediaPath#/#file.serverFile#" &gt; &lt;!--- figure out which way to scale the image ---&gt; &lt;cfif uploadedImage.width gt uploadedImage.height&gt; &lt;cfset thmb_percentage = (thumbsize / uploadedImage.width)&gt; &lt;cfset percentage = (imagesize / uploadedImage.width)&gt; &lt;cfelse&gt; &lt;cfset thmb_percentage = (thumbsize / uploadedImage.height)&gt; &lt;cfset percentage = (imagesize / uploadedImage.height)&gt; &lt;/cfif&gt; &lt;!--- calculate the new thumbnail and image height/width ---&gt; &lt;cfset thumbWidth = round(uploadedImage.width * thmb_percentage)&gt; &lt;cfset thumbHeight = round(uploadedImage.height * thmb_percentage)&gt; &lt;cfset newWidth = round(uploadedImage.width * percentage)&gt; &lt;cfset newHeight = round(uploadedImage.height * percentage)&gt; &lt;!--- see if we need to resize the image, maybe it is already smaller than our desired size ---&gt; &lt;cfif uploadedImage.width gt imagesize&gt; &lt;cfimage action="resize" height="#newHeight#" width="#newWidth#" source="#uploadedImage#" destination="#MediaPath#/#file.serverFile#" overwrite="true"/&gt; &lt;/cfif&gt; &lt;!--- create a thumbnail for the image ---&gt; &lt;cfimage action="resize" height="#thumbHeight#" width="#thumbWidth#" source="#uploadedImage#" destination="#MediaPath#/thumbs/#file.serverFile#" overwrite="true"/&gt; &lt;cfoutput&gt; &lt;img src="images/thumbs/#file.serverFile#" height="#thumbHeight#" width="#thumbWidth#" align="left" hspace="10"&gt;&lt;br&gt; Original Image: #uploadedImage.width#x#uploadedImage.height#&lt;br&gt; Resized Image: #newWidth#x#newHeight#&lt;br&gt; Thumbnail: #thumbWidth#x#thumbHeight#&lt;br&gt;&lt;br&gt; &lt;a href="images/#file.serverFile#"&gt;See Image&lt;/a&gt;&lt;br&gt; &lt;/cfoutput&gt; &lt;/cfif&gt; &lt;form action="" method="post" enctype="multipart/form-data"&gt; &lt;label for="fileUpload"&gt;Choose Image: &lt;/label&gt; &lt;input type="file" name="fileUpload"&gt; &lt;input type="submit" value="Upload Image"&gt; &lt;/form&gt; </code></pre>